cargo-edit
cargo-edit copied to clipboard
cargo upgrade is inconsistent with cargo
Normally, cargo commands have the following flags to control which packages are selected
--workspaceto select all workspace members--pkgidto select specific packages in a workspace--excludeto de-select specific packages in a workspace
cargo upgrade instead has
--workspacenormal--pkgidnormal--excludeinstead this is selecting which dependencies to not upgrade, the opposite of the positional arguments
cargo update follows the standard model by the selector flags control selecting packages in the lock file to upgrade.
Other precedence:
poetrydoesn't have bulk upgrading yet, see https://github.com/python-poetry/poetry/issues/461- For yarn and pnpm, its unclear to me whether they are more like
cargo updateorcargo upgradeand if there is any precedent we can pull from
cargo outdated uses the -i / --ignore flag
See https://crates.io/crates/cargo-outdated
#785 fixed this by removing manifest selection