Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

feat: add generic project type #45

Merged
merged 1 commit into from
Nov 9, 2023
Merged

feat: add generic project type #45

merged 1 commit into from
Nov 9, 2023

Conversation

mistydemeo
Copy link
Contributor

This adds a new project type: generic projects, which represent any sort of project with an axo-specific manifest file. That manifest file, dist.toml, contains key information about projects in a very Cargo-like format.

Axoproject parses the profile section of dist.toml to populate WorkspaceInfo; it contains the same core fields as Cargo.toml along with a few extra fields that are normally inferred from asking cargo, such as the lists of build artifacts. It also contains the build command to run. The other section, dist, we defer to cargo-dist because it contains cargo-dist's config.

@mistydemeo mistydemeo force-pushed the generic_project_type branch 5 times, most recently from 13cae92 to 8ef3615 Compare November 7, 2023 00:06
@mistydemeo
Copy link
Contributor Author

Pushed a second commit that uses toml-serde to parse the generic dist.toml. It adds an extra non-default dependency though, if we care about that.

src/lib.rs Outdated Show resolved Hide resolved
@mistydemeo mistydemeo force-pushed the generic_project_type branch 4 times, most recently from 574debe to 6f85ed0 Compare November 7, 2023 18:07
@mistydemeo mistydemeo force-pushed the generic_project_type branch 2 times, most recently from 27e809e to 4a9f27e Compare November 9, 2023 00:54
@mistydemeo mistydemeo merged commit 873bf56 into main Nov 9, 2023
11 checks passed
@mistydemeo mistydemeo deleted the generic_project_type branch November 9, 2023 20:09
@mistydemeo mistydemeo mentioned this pull request Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants