Ability to cargo install <dependency>@<version>
should update Cargo.toml
#6488
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Problem
It seems to add a dependency using cargo to my rust project, I need to manually alter
Cargo.toml
directly. For bootstrapping projects, this seems a bit slow and cumbersome.Solution
It would be great to just
cargo install <dependency>@<version>
orcargo install <dep_1> <dep_2> <dep_3>
where dependencies 1 thru 3 are installed as the latest andCargo.toml
is updated appropriately.Instead of README's adding:
Make it easy for consumers of the crate via:
The text was updated successfully, but these errors were encountered: