cargo-clone-crate

Crates.iocargo-clone-crate
lib.rscargo-clone-crate
version0.1.9
sourcesrc
created_at2018-07-09 21:11:49.008134
updated_at2023-10-12 20:38:59.972599
descriptionCargo subcommand to clone a repo from the registry.
homepagehttps://github.com/ehuss/cargo-clone-crate
repositoryhttps://github.com/ehuss/cargo-clone-crate
max_upload_size
id73542
size60,713
Eric Huss (ehuss)

documentation

README

cargo clone

A Cargo subcommand to clone a repository from the crates.io index.

Installation

cargo install cargo-clone-crate

Usage

By default it will attempt to guess if the package uses git, Mercurial, or other version control systems.

cargo clone bitflags

If it can't determine which to use, you can force it manually:

cargo clone --method=fossil rs-graph graph.fossil

You can also download the crate file directly from crates.io:

cargo clone --method=crate bitflags

The crate method can also take a version to fetch a specific version:

cargo clone --version=1.0.1 bitflags

If passed a Cargo-style package spec with a version requirement, it will always use the crate method to download directly from crates.io:

cargo clone bitflags:^1.0

The @ style syntax is also supported:

cargo clone regex@1.7.1

Extra arguments are passed to the VCS command:

cargo clone bitflags --depth=1 bf

Commit count: 70

cargo fmt