]> git.proxmox.com Git - cargo.git/commit - src/doc/src/commands/cargo-doc.md
Auto merge of #10398 - piggynl:cargo-doc-fixes-1, r=weihanglo
authorbors <bors@rust-lang.org>
Tue, 22 Feb 2022 17:18:24 +0000 (17:18 +0000)
committerbors <bors@rust-lang.org>
Tue, 22 Feb 2022 17:18:24 +0000 (17:18 +0000)
commitc974e3528c9a81bc900a23114302538de293f2be
tree01599d1e7adfb99d6be8c26bf4d1ebcd49c6c5e5
parent06ee2296749120bdde747dd6d0ff076afb9b50f7
parent08734a664362b9ea39ba7d15ef340eff25749af4
Auto merge of #10398 - piggynl:cargo-doc-fixes-1, r=weihanglo

Fix errors in `cargo fetch` usage guide

This is a recreation of #9785.

1. By [the doc](https://doc.rust-lang.org/cargo/commands/cargo-build.html#manifest-options), `cargo build` will always access the network unless `--frozen` or `--offline` is present. Instead, `cargo fetch` will fetch dependencies, and which will allow running subsequent Cargo commands in offline mode.

2. A general template was used for `--target` that is not appropriate for `cargo fetch`.