check-updates
check-updates is a Rust library and CLI tool for checking if your dependencies are up to date. It can be used as a cargo subcommand or as a standalone tool.
Currently only supports Crates.io, but support for other package managers / registries is planned for the future.
Installation
CLI usage
Main ways to use it:
- Run
check-updatesto see available dependency updates. - Use
check-updates -ifor interactive selection. - Use
check-updates -uto update version requirements inCargo.toml. - Use
check-updates -Uto update requirements and runcargo update.
Flags and options:
| Short | Long | Description |
|---|---|---|
-i |
--interactive |
Interactive selection UI |
-u |
--update |
Update version requirements in Cargo.toml |
-U |
--upgrade |
Update requirements and run cargo update |
-c |
--compatible |
Only semver-compatible updates |
-p |
--package <NAME> |
Only check specific workspace package(s); repeat for more |
| - | --root <DIR> |
Root directory to search from |
| - | --verbose |
Enable verbose output |
| - | --cache <MODE> |
Cache mode: prefer-local, refresh, or no-cache |
| - | --pre |
Include pre-release versions |
| - | --compact |
Compact interactive mode (less spacing) |
| - | --fail-on-updates |
Exit with status code 2 when updates are available |
For all options and flags, see:
See also
- cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date
- cargo-edit - A cargo subcommand for editing your Cargo.toml file
- cargo-upgrades - A cargo subcommand for upgrading your dependencies
- npm-check-updates - A command-line tool that allows you to find out which of your npm dependencies are outdated
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in check-updates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.