1 unstable release

0.1.0 Apr 18, 2019

#9 in #downloaded

Download history 51/week @ 2024-03-12 33/week @ 2024-03-19 25/week @ 2024-03-26 122/week @ 2024-04-02 48/week @ 2024-04-09 8/week @ 2024-04-16 12/week @ 2024-04-23 249/week @ 2024-04-30 103/week @ 2024-05-07 21/week @ 2024-05-14 99/week @ 2024-05-21 28/week @ 2024-05-28 25/week @ 2024-06-04 15/week @ 2024-06-11 81/week @ 2024-06-18 11/week @ 2024-06-25

134 downloads per month

MIT/Apache

36KB
1.5K SLoC

cargo prefetch

crates.io

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.

Installation

cargo install cargo-prefetch

Usage

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.

Examples

  1. cargo prefetch

    Downloads the top 100 most common dependencies.

  2. cargo prefetch --list

    Print what would be downloaded, instead of downloading.

  3. cargo prefetch serde

    Downloads the most recent version of serde.

  4. cargo prefetch serde@=1.0.90

    Download a specific version of serde.

  5. cargo prefetch --top-downloads

    Download the top 100 most downloaded crates.

  6. cargo prefetch --top-downloads=400

    Download the top 400 most downloaded crates.

Dependencies

~19–30MB
~535K SLoC