6 个版本
| 最新 0.1.5 | 2024年8月16日 | 
|---|---|
| 0.1.4 | 2023年8月21日 | 
| 0.1.1 | 2023年5月22日 | 
| 0.1.0 | 2022年7月29日 | 
在 Cargo 插件 中排名 #156
每月下载量 141
36KB
614 行代码(不含注释)
Cargo 子命令,用于下载crate源代码
Cargo subcommand for downloading crate sources
Usage: cargo dl [OPTIONS] <CRATE[@VERSION_REQ]>...
Arguments:
  <CRATE[@VERSION_REQ]>...
          The crate(s) to download.
          Optionally including which version of the crate to download after `@`,
          in the standard semver constraint format used in Cargo.toml. If
          unspecified the newest non-prerelease, non-yanked version will be
          fetched.
Options:
  -x, --extract
          Specify this flag to have the crate extracted automatically.
          Note that unless changed via the --output flag, this will extract the
          files to a new subdirectory bearing the name of the downloaded crate
          archive.
  -o, --output <OUTPUT>
          Normally, the compressed crate is written to a file (or directory if
          --extract is used) based on its name and version.  This flag allows to
          change that by providing an explicit file or directory path. (Only
          when downloading a single crate)
      --allow-yanked
          Allow yanked versions to be chosen
      --no-cache
          Disable checking cargo cache for the crate file
      --no-index-update
          Disable updating the cargo index before downloading (if out of date
          you may not download the latest matching version)
  -h, --help
          Print help (see a summary with '-h')
  -V, --version
          Print version
Rust 版本策略
此crate仅支持当前稳定版本的Rust,补丁版本可能随时使用新功能。
许可证
根据您的选择,许可协议为以下之一:
- Apache 许可协议 2.0 (LICENSE-APACHE或 https://apache.ac.cn/licenses/LICENSE-2.0)
- MIT 许可协议 (LICENSE-MIT或 https://open-source.org.cn/licenses/MIT)
由您选择。
贡献
除非您明确表示,否则您提交的任何有意包含在作品中的贡献将按照上述方式双许可,不附加任何其他条款或条件。
依赖
~22–35MB
~655K SLoC