A cargo
subcommand for checking and applying updates to installed executables
Firstly, ensure you have CMake, be it from your package manager, or from the download page.
Then proceed as usual:
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
)