6 releases

0.1.5 Aug 16, 2024
0.1.4 Aug 21, 2023
0.1.1 May 22, 2023
0.1.0 Jul 29, 2022

#194 in Cargo plugins

MIT/Apache

36KB
614 lines

version-badge license-badge rust-version-badge

Cargo subcommand for downloading crate sources

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 Version Policy

This crate only supports the current stable version of Rust, patch releases may use new features at any time.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~25–37MB
~663K SLoC