-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.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-addS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
Problem
cargo add
can be used to enable features of an existing dependency. In that situation, it's useful to see which features were enabled explicitly, i.e. are listed in the Cargo.toml
file.
Proposed Solution
In the list of features, add the text (enabled explicitly)
after explicitly enabled features:
cargo add once_cell -F parking_lot,unstable
Updating crates.io index
Adding once_cell v1.11.0 to dependencies.
Features:
+ alloc
+ parking_lot (enabled explicitly)
+ parking_lot_core
+ race
+ std
+ unstable (enabled explicitly)
- atomic-polyfill
Another possibility is to only show this with the --verbose/-v
flag, but I think it's useful enough that it can be shown always.
Notes
No response
marcospb19, pcgeek86, BartMassey and brian6932
Metadata
Metadata
Assignees
Labels
A-console-outputArea: Terminal output, colors, progress bar, etc.Area: Terminal output, colors, progress bar, etc.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-addS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.