cd
cargo-download
cargo install cargo-download
cd

cargo-download

Cargo subcommand for downloading crates directly from crates.io

by Karol Kuczmarski

0.1.2 (see all)License:MIT
cargo install cargo-download
Readme

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.

GitHub Stars

23

LAST COMMIT

3yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

7

OPEN PRs

2
VersionTagPublished
0.1.2
3yrs ago
0.1.1
5yrs ago
0.1.0
5yrs ago
0.0.3
5yrs ago
No alternatives found
No tutorials found
Add a tutorial