Sodamhan.com

TL;DR

cargo fetch

Fetch dependencies of a package from the network. More information: https://doc.rust-lang.org/cargo/commands/cargo-fetch.html.

  • Fetch dependencies specified in Cargo.lock (for all targets):

cargo fetch

  • Fetch dependencies for the specified target:

cargo fetch --target target_triple

This document was created using the contents of the tldr project.