cargo-*: update page (#11327)
This commit is contained in:
@@ -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}}`
|
||||
|
Reference in New Issue
Block a user