🍺 BREW Explorer

← all formulae

cargo-clone

brew install cargo-clone v1.2.4 Apache-2.0 OR MIT

Cargo subcommand to fetch the source code of a Rust crate

27
30-day installs · #6011
59
90-day · #6875
277
365-day · #6518
110
★ GitHub stars · updated 2mo ago

Runtime dependencies

Build dependencies

GitHub topics

cargo cargo-subcommand rust-crate

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf",
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "openssl@3"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Cargo subcommand to fetch the source code of a Rust crate",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:08+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cargo-clone",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-10T10:01:30Z",
  "github_readme_excerpt": "# cargo-clone\n\ncargo-clone can be used to fetch the source code of a Rust crate from a registry.\n\n    cargo clone [FLAGS] [OPTIONS] \u003ccrate\u003e... [-- \u003cdirectory\u003e]\n\ncargo-clone is a [Cargo subcommand](https://github.com/rust-lang/cargo/wiki/Third-party-cargo-subcommands).\n\n# Installation \u0026 upgrading\n\n    cargo install cargo-clone\n\n## Usage\n\n    cargo clone [FLAGS] [OPTIONS] \u003ccrate\u003e... [-- \u003cdirectory\u003e]\n\nTo download cargo-clone\u0027s code you would use\n\n    cargo clone cargo-clone\n\n\n### Specifying versions\nThe latest available version is downloaded by default.\nIf specific versions are desired, semver specifiers can be appended to crate names. \n\n\n    cargo clone cargo-clone@1.0.0\n\nVersions are matched exactly by default, but other kinds of matching are also allowed.\n\n    cargo clone cargo-clone@~1.0.0\n\n\n### Cloning from git repositories\nUsing the `--git` flag runs `git clone` on each git repository url extracted from crate\u0027s metadata.\n\nThese lines are roughly equivalent:\n\n    cargo clone --git cargo-clone\n    git clone https://github.com/janlikar/cargo-clone\n\nThe command fails if a crate does not have the repository field set to a valid git repository.\n\n\n### Output directory\nCrates are downloaded into `$PWD/$CRATE_NAME` by default.\n\nThe output dir can be specified as the last argument:\n\n    cargo clone cargo-clone -- foo  # Downloads into $PWD/foo\n\nIf multiple packages are downloaded at the same time or if the directory contains a trailing slash,\nthe packages will be downloaded into subdirectories of the path provided.\n\n    cargo clone cargo-clone -- pkgs/  # Creates pkgs/cargo-clone/\n    cargo clone cargo serde -- pkgs2/  # Creates pkgs2/cargo and pkgs2/serde\n\n\n## Contributing\nContributions are welcome. Feel free to open a PR into develop branch.\n\nWhen running locally, you can run using `cargo run -- clone CRATE` or `cargo-clone clone CRATE`.\n\nBy opening a PR you agree to license your code under Apache/MIT licenses.\n",
  "github_repo": "JanLikar/cargo-clone",
  "github_stars": 110,
  "github_topics": [
    "cargo",
    "cargo-subcommand",
    "rust-crate"
  ],
  "homepage": "https://github.com/JanLikar/cargo-clone",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 27,
  "installs_365d": 277,
  "installs_90d": 59,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0 OR MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cargo-clone",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6011,
  "rank_365d": 6518,
  "rank_90d": 6875,
  "raw_hash": "8cfa78e2839cdc86",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cargo-clone.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "rustup"
  ],
  "uses_from_macos": [
    "curl"
  ],
  "version_head": "HEAD",
  "version_stable": "1.2.4",
  "versioned_formulae": [],
  "why_use_this": null
}