LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cargo-fetch

Download dependencies for offline builds

TLDR

Fetch all dependencies
$ cargo fetch
copy
Fetch for specific target
$ cargo fetch --target [x86_64-unknown-linux-gnu]
copy
Fetch with locked versions
$ cargo fetch --locked
copy
Fetch offline (from cache)
$ cargo fetch --offline
copy

SYNOPSIS

cargo fetch [options]

DESCRIPTION

cargo fetch downloads all dependencies from the network and stores them locally. If Cargo.lock exists, fetches exact versions specified. Otherwise, generates the lock file first.Useful for preparing to work offline with the --offline flag.

PARAMETERS

--target triple

Fetch for specified target architecture (can be repeated)
--locked
Assert same dependencies as original Cargo.lock
--offline
Use only locally cached crates
--frozen
Equivalent to --locked and --offline
--manifest-path path
Path to Cargo.toml
-v, --verbose
Verbose output
-q, --quiet
Suppress log messages

BEHAVIOR

Without --target, fetches all target dependencies. Git dependencies are cloned with submodules. Registry crates are downloaded to cargo cache.

INSTALL

sudo apt install cargo
copy
sudo dnf install cargo
copy
sudo apk add cargo
copy
sudo zypper install cargo
copy
nix profile install nixpkgs#cargo
copy

CAVEATS

Subsequent cargo commands can run offline after fetch unless lock file changes. Network access required unless using --offline with cached dependencies.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid