cargo update

Update dependencies as recorded in the local lock file


-p, --package <package...>
  • Repeatable ♾
--precise <precise>Update a single dependency to exactly PRECISE when used with -p
--manifest-path <manifest-path>Path to Cargo.toml
--color <color>Coloring: auto, always, never
--config <config>
  • Repeatable ♾
-Z <unstable-features>
  • Repeatable ♾
-q, --quietDo not print cargo log messages
-w, --workspaceOnly update the workspace packages
--aggressiveForce updating all dependencies of SPEC as well when used with -p
--dry-runDon't actually write the lockfile
-h, --helpPrint help information
-v, --verbose
  • Repeatable ♾
--frozenRequire Cargo.lock and cache are up to date
--lockedRequire Cargo.lock is up to date
--offlineRun without accessing the network