1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cargo-fetch.md
Omnath Mandal 6b2ee7e0e5
cargo-fetch: add page (#10883)
* [cargo fetch]

* [fix]

* Update cargo-fetch.md
2023-10-08 16:34:41 +07:00

32 lines
582 B
Markdown

# 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`