A setting and/or flag to add short version numbers with cargo add
#12072
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
Currently,
cargo add
will add full latest version number toCargo.toml
. Especially in new projects (where a lot ofadd
actions happen,) this might not be ideal. I at least, find myself removing patch and ofteneven minor version numbers, so that I can occasionally just removeCargo.lock
and get everything upgraded.Proposed Solution
resulting in
cargo add tokio
addingand
resulting in
cargo add tokio
addingPossible settings
major|minor|patch
withpatch
being the default.Not quite sure about commandline flags, am absolutely open to suggestions there.
Notes
I am absolutely open to writing a PR for this.
The text was updated successfully, but these errors were encountered: