Crates.io | cargo-prefetch |
lib.rs | cargo-prefetch |
version | 0.1.0 |
source | src |
created_at | 2019-04-18 22:57:04.684473 |
updated_at | 2019-04-18 22:57:04.684473 |
description | Cargo subcommand to download popular crates. |
homepage | https://github.com/ehuss/cargo-prefetch |
repository | https://github.com/ehuss/cargo-prefetch |
max_upload_size | |
id | 128742 |
size | 49,398 |
cargo prefetch
A Cargo subcommand to download popular crates.
This command is used to download some popular dependencies into Cargo's cache. This is useful if you plan to go offline, and you want a collection of common crates available to use.
cargo install cargo-prefetch
Running cargo prefetch
will download the top 100 most common dependencies on
crates.io. There are several options for choosing which crates will be
downloaded, run with --help
to see the options.
cargo prefetch
Downloads the top 100 most common dependencies.
cargo prefetch --list
Print what would be downloaded, instead of downloading.
cargo prefetch serde
Downloads the most recent version of serde.
cargo prefetch serde@=1.0.90
Download a specific version of serde.
cargo prefetch --top-downloads
Download the top 100 most downloaded crates.
cargo prefetch --top-downloads=400
Download the top 400 most downloaded crates.