cargo-*: update page (#11327)

This commit is contained in:
Lena
2023-10-29 09:54:53 +01:00
committed by GitHub
parent 28a74a924c
commit 158b891e0f
14 changed files with 56 additions and 150 deletions

View File

@@ -3,30 +3,10 @@
> Fetch dependencies of a package from the network.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-fetch.html>.
- Fetch dependencies from the `Cargo.lock` file:
- Fetch dependencies specified in `Cargo.lock` (for all targets):
`cargo fetch {{options}}`
`cargo fetch`
- Display verbose output:
- Fetch dependencies for the specified target:
`cargo fetch --verbose`
- Do not print Cargo log messages:
`cargo fetch --quiet`
- Control colored output:
`cargo fetch --color {{auto|always|never}}`
- Path to `Cargo.toml`:
`cargo fetch --manifest-path {{path}}`
- Prevent Cargo from accessing the network:
`cargo fetch --offline`
- Display help:
`cargo fetch --help`
`cargo fetch --target {{target_triple}}`