cargo-update: add page (#10745)

pull/23/head
TornaxO7 2023-09-23 15:19:52 +02:00 committed by GitHub
parent 2cc32476ba
commit a7da551d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# cargo update
> Update dependencies as recorded in `Cargo.lock`.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-update.html>.
- Update dependencies in `Cargo.lock` to the latest possible version:
`cargo update`
- Display what would be updated, but don't actually write the lockfile:
`cargo update --dry-run`
- Update only the specified dependencies:
`cargo update --package {{dependency1}} --package {{dependency2}} --package {{dependency3}}`
- Set a specific dependency to a specific version:
`cargo update --package {{dependency}} --precise {{1.2.3}}`