From e8ec50663cd763e178ea6c0691b923cd11106068 Mon Sep 17 00:00:00 2001 From: Chris Cassano Date: Fri, 2 May 2025 15:32:17 -0700 Subject: [PATCH] add more details about cargo fetch and when it will regen cargo.lock --- src/doc/src/commands/cargo-fetch.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/doc/src/commands/cargo-fetch.md b/src/doc/src/commands/cargo-fetch.md index 8cdf5cc1311..f716aa09288 100644 --- a/src/doc/src/commands/cargo-fetch.md +++ b/src/doc/src/commands/cargo-fetch.md @@ -17,6 +17,10 @@ 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. +If the lock file is not compatible with the current `Cargo.toml`, then this +command will initiate dependency resolution from the current `Cargo.toml` file, +and update the lock file. + If `--target` is not specified, then all target dependencies are fetched. See also the [cargo-prefetch](https://crates.io/crates/cargo-prefetch)