Currently, doing cargo add foo --features just prints error: a value is required for '--features <FEATURES>' but none was supplied. I think it would be useful behavior to instead list the features the target crate has. That would allow a more ergonomic workflow when adding a crate, where you can run cargo add foo -F, see a list of features, hit up in your shell, add the features you want, and hit enter. It would also be nice to seee which features are default, like the + vs - it prints when listing the features when you actually add a crate.
Currently, doing
cargo add foo --features
just printserror: a value is required for '--features <FEATURES>' but none was supplied
. I think it would be useful behavior to instead list the features the target crate has. That would allow a more ergonomic workflow when adding a crate, where you can runcargo add foo -F
, see a list of features, hit up in your shell, add the features you want, and hit enter. It would also be nice to seee which features are default, like the+
vs-
it prints when listing the features when you actually add a crate.