-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo metadata
should return default workspace members
#8033
Comments
cc @metajack |
I implemented this here https://github.com/charles-r-earp/cargo. I fixed one test "cargo_metadata_simple". |
@charles-r-earp that looks great! you can probably submit that as a PR to this repo. |
Hello all. Thanks for the proposal and the pull request. I'd like to know more about why default members in Will do a simple FCP collecting options from the team then if it is reasonable. (And sorry for the way too late reply 😅) |
A simple use case is writing a linter that triggers only on default workspace members. Without support for this, one has to manually scrape the root Cargo.toml. |
Cargo extensions and dev tools will want to emulate cargo, like having options like --manifest-path, --workspace, --package, etc. There are tools to do this like clap_cargo + cargo_metadata which makes use of cargo metadata. This allows cargo-foo bar to operate on all workspace default members just like cargo check / build / test / etc. |
Thank you all for sharing! I propose adding workspace default member information to the output of One concern is that the size of the output grows overtime. @rfcbot fcp merge We don't need to wait for 10 days after the poll btw. |
Team member @weihanglo has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Describe the problem you are trying to solve
For a workspace, it is possible to specify default members through the
workspace.default-members
key. It would be great to expose this information throughcargo metadata
.Describe the solution you'd like
The same format as
workspace_members
incargo metadata
-- a list of package IDs.The text was updated successfully, but these errors were encountered: