diff --git a/src/doc/src/commands/cargo-fetch.md b/src/doc/src/commands/cargo-fetch.md index 1a7a17d5c35..8bcb5041c90 100644 --- a/src/doc/src/commands/cargo-fetch.md +++ b/src/doc/src/commands/cargo-fetch.md @@ -13,8 +13,9 @@ cargo-fetch - Fetch dependencies of a package from the network If a `Cargo.lock` file is available, this command will ensure that all of the git dependencies and/or registry dependencies are downloaded and locally -available. Subsequent Cargo commands never touch the network after a `cargo -fetch` unless the lock file changes. +available. Subsequent Cargo commands run with `--locked`, `--frozen`, or +`--offline` will not touch the network after a `cargo fetch` unless the lock +file changes. If the lock file is not available, then this command will generate the lock file before fetching the dependencies. @@ -31,8 +32,8 @@ you plan to use Cargo without a network with the `--offline` flag.
--target triple
-
Fetch for the given architecture. The default is the host -architecture. The general format of the triple is +
Fetch for the given architecture. The default is to fetch dependencies +for all targets. The general format of the triple is <arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for a list of supported targets.

This may also be specified with the build.target