A cargo
subcommand for checking and applying updates to installed executables
shell
cargo install cargo-update
cargo install-update -a
- check for newer versions and update all installed packages.
cargo install-update crate1 crate2 ...
- check for newer versions and update selected packages, will not install new packages.
For more information and examples see the manpage.
cargo-update
will update itself seamlessly on Linux and Windows.
On Windows the following strategy is applied:
* Check for old versions, remove them
* Add the current version to the current executable's extension
* Create an empty file in place of the just-renamed file (this way cargo install
will "replace" it and not duplicate the entry in .crates.toml
)