5个版本
使用旧的Rust 2015
0.1.2 | 2019年2月13日 |
---|---|
0.1.1 | 2017年12月18日 |
0.1.0 |
|
0.0.3 | 2017年11月20日 |
#176 in #fetch
每月 838 次下载
31KB
584 行
cargo-download
A cargo subcommand for downloading crates from crates.io
关于
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
安装
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
.
使用方法
要下载foo
crate的最新版本,执行以下操作
$ cargo download foo >foo.gz
您也可以使用标准的Cargo.toml语法来指定特定版本
$ cargo download foo==0.9 >foo-0.9.gz
有关更详细的用法说明,请运行cargo download --help
.
许可证
cargo-download
是在MIT许可证下许可的。
依赖项
~26–37MB
~667K SLoC