src/doc/src/commands/cargo-update.md
cargo-update --- Update dependencies as recorded in the local lock file
cargo update [options] spec
This command will update dependencies in the Cargo.lock file to the latest
version. If the Cargo.lock file does not exist, it will be created with the
latest available versions.
See the reference for details on environment variables that Cargo reads.
0: Cargo succeeded.101: Cargo failed to complete.Update all dependencies in the lockfile:
cargo update
Update only specific dependencies:
cargo update foo bar
Set a specific dependency to a specific version:
cargo update foo --precise 1.2.3