tldr/pages/common/cargo-fetch.md

13 lines
320 B
Markdown
Raw Normal View History

# cargo fetch
> Fetch dependencies of a package from the network.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-fetch.html>.
2023-10-29 08:54:53 +00:00
- Fetch dependencies specified in `Cargo.lock` (for all targets):
2023-10-29 08:54:53 +00:00
`cargo fetch`
2023-10-29 08:54:53 +00:00
- Fetch dependencies for the specified target:
2023-10-29 08:54:53 +00:00
`cargo fetch --target {{target_triple}}`