mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 20:35:32 +02:00
cargo-fetch: add page (#10883)
* [cargo fetch] * [fix] * Update cargo-fetch.md
This commit is contained in:
parent
bf3cf7310c
commit
6b2ee7e0e5
1 changed files with 32 additions and 0 deletions
32
pages/common/cargo-fetch.md
Normal file
32
pages/common/cargo-fetch.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# cargo fetch
|
||||
|
||||
> 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:
|
||||
|
||||
`cargo fetch {{options}}`
|
||||
|
||||
- Display verbose output:
|
||||
|
||||
`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`
|
Loading…
Add table
Reference in a new issue