cargo-fetch: add page (#10883)

* [cargo fetch]

* [fix]

* Update cargo-fetch.md
pull/23/head
Omnath Mandal 2023-10-08 15:04:41 +05:30 committed by GitHub
parent bf3cf7310c
commit 6b2ee7e0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

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