Open
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