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

未维护 app cargo-download

Cargo子命令,用于下载crate源代码

5个版本

使用旧的Rust 2015

0.1.2 2019年2月13日
0.1.1 2017年12月18日
0.1.0 2017年11月28日
0.0.3 2017年11月20日

#176 in #fetch

Download history 214/week @ 2024-03-13 274/week @ 2024-03-20 325/week @ 2024-03-27 564/week @ 2024-04-03 308/week @ 2024-04-10 225/week @ 2024-04-17 319/week @ 2024-04-24 268/week @ 2024-05-01 197/week @ 2024-05-08 178/week @ 2024-05-15 159/week @ 2024-05-22 165/week @ 2024-05-29 198/week @ 2024-06-05 192/week @ 2024-06-12 140/week @ 2024-06-19 284/week @ 2024-06-26

每月 838 次下载

MIT 许可证

31KB
584

cargo-download

crates.io Build Status

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