killercup / cargo-edit

A utility for managing cargo dependencies from the command line.
http://killercup.github.io/cargo-edit/
MIT License
3.09k stars 148 forks source link

allow using non-`cargo` command directly #878

Closed ds-cbo closed 1 year ago

ds-cbo commented 1 year ago

cargo-upgrade behaves very different from cargo upgrade:

% cargo upgrade --version
cargo-edit-upgrade 0.12.2

% cargo-upgrade --version
error: unexpected argument '--version' found

Usage: cargo <COMMAND>

For more information, try '--help'.

% cargo-upgrade upgrade --version
cargo-edit-upgrade 0.12.2

I think it would make sense to treat cargo-upgrade the same as cargo upgrade. Something like cargo-upgrade upgrade feels weird

epage commented 1 year ago

I would classify cargo-upgrade as in maintenance mode as the focus of development is on merging it into cargo (rust-lang/cargo#12425). I believe some of the more peripheral parts of that work were released in 1.74 but I haven't gotten to the main part (yet).

Cargo's third-party plugin system requires it to work that way. There are workarounds but the use case seems small enough and the focus is on upstreaming, that I'm going to close this. If there is a reason to re-evaluate, let us know!