#cargo-subcommand #download #subcommand #cargo #fetch

unmaintained app cargo-download

Cargo subcommand for downloading crate sources

5 releases

Uses old Rust 2015

0.1.2 Feb 13, 2019
0.1.1 Dec 18, 2017
0.1.0 Nov 28, 2017
0.0.3 Nov 20, 2017

#165 in #subcommand

Download history 179/week @ 2024-05-21 162/week @ 2024-05-28 184/week @ 2024-06-04 213/week @ 2024-06-11 135/week @ 2024-06-18 254/week @ 2024-06-25 472/week @ 2024-07-02 201/week @ 2024-07-09 457/week @ 2024-07-16 305/week @ 2024-07-23 401/week @ 2024-07-30 365/week @ 2024-08-06 501/week @ 2024-08-13 306/week @ 2024-08-20 266/week @ 2024-08-27 334/week @ 2024-09-03

1,491 downloads per month

MIT license

31KB
584 lines

cargo-download

crates.io Build Status

A cargo subcommand for downloading crates from crates.io

About

cargo-download can be used to download a gzipped archive of given crate, in the exact form that it was uploaded to crates.io.

This can be useful for a variety of things, such as:

  • checking in your dependencies in source control (if your team/organization follows this practice)
  • mirroring crates.io for reproducible CI/CD pipelines
  • security auditing of crates (esp. when a crate repository is missing)
  • reproducing a bug that only occurs in uploaded versions of your crate

Installation

cargo-download can be installed with cargo install:

$ cargo install cargo-download

This shall put the cargo-download executable in your Cargo binary directory (e.g. ~/.cargo/bin), which hopefully is in your $PATH.

Usage

To download the newest version of foo crate, do this:

$ cargo download foo >foo.gz

You can also use the standard Cargo.toml notation to specify a particular version:

$ cargo download foo==0.9 >foo-0.9.gz

For more detailed usage instructions, run cargo download --help.

License

cargo-download is licensed under the terms of the MIT license.

Dependencies

~25–36MB
~664K SLoC