-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-metadataS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewZ-public-dependencyNightly: public-dependencyNightly: public-dependency
Description
Problem
related to rust-lang/rust#44663
Information about whether or not a dependency is public is not included in the output of cargo metadata
.
This could be useful for custom subcommands. cargo override
, would find this useful for eopb/cargo-override#121
Proposed Solution
When -Zpublic-dependency
is enabled, include a boolean flag in cargo metadata
s output at packages[].dependencies[].public
.
If -Zpublic-dependency
is not enabled, this flag should not appear in cargo metadata
output.
Notes
If this feature request is accepted, I'm happy to claim and take a crack at working on it
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-metadataS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewZ-public-dependencyNightly: public-dependencyNightly: public-dependency