Automic VaultAutomic Vault

brew

Install cargo-clone with Homebrew, Nix, pacman

Cargo subcommand to fetch the source code of a Rust crate. Version 1.2.4 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cargo-clone

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#cargo-clone

nixpkgs package indexes · pkgs/by-name/ca/cargo-clone/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S cargo-clone

Arch Linux sync databases · cargo-clone · source: geo.mirror.pkgbuild.com

overview

Package summary

Cargo subcommand to fetch the source code of a Rust crate

Commands and aliases

  • cargo-clone

history

Project history and usage

cargo-clone is a small Cargo subcommand that downloads the source code of crates from a registry. It fills a simple inspection gap: getting a crate's packaged source without manually navigating registry storage or repository metadata.

Project history

The GitHub repository was created in January 2016, early in Cargo's third-party subcommand culture. The README positions cargo-clone as a way to fetch Rust crate source from a registry and, optionally, clone the upstream git repository recorded in crate metadata.

Adoption history

cargo-clone is a niche utility rather than a broad platform component. Its adoption is visible through crates.io publication and packaging in Homebrew, Nix, and pacman, mostly serving developers who inspect crate contents or reproduce package sources.

How it is used

Users run commands such as `cargo clone serde` or append a version requirement such as `cargo clone cargo-clone@1.0.0`. With `--git`, the tool uses the repository URL from crate metadata and delegates to git clone.

Why package nerds care

The tool matters to package nerds because it distinguishes registry source from repository source. That distinction is central to auditing Rust packages: the code published to crates.io is the artifact Cargo actually builds.

Timeline

  • 2016: GitHub repository created.
  • 2016: First crates.io publication recorded for cargo-clone.
  • 2025: crates.io metadata shows continued updates, with version 1.2.4 current by the sampled registry data.

Related projects

  • Cargo provides the external subcommand mechanism that lets `cargo clone` dispatch to cargo-clone.
  • crates.io is the registry source that cargo-clone queries and downloads from.
  • git is used when users choose the README-documented `--git` path.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cargo-clonecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.2.4
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv1.2.4

https://github.com/JanLikar/cargo-clone

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cargo-clone
Version1.2.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cargo-clone
Homepagehttps://github.com/JanLikar/cargo-clone
Repositoryhttps://github.com/JanLikar/cargo-clone
Upstream docshttps://github.com/JanLikar/cargo-clone#readme
LicenseApache-2.0 OR MIT
Source archivehttps://github.com/JanLikar/cargo-clone/archive/refs/tags/v1.2.4.tar.gz
Last updated2026-06-22T14:02:57-07:00
Pulseupdated
Dependenciesopenssl@3
Build dependenciespkgconf, rust
Uses from macOScurl
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-clone
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

cargo-clone

nix profile install nixpkgs#cargo-clone
  • normalized package name match
  • Matched by: Cargo Clone
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-clone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

cargo-clone 1.2.4-2

A cargo subcommand to fetch the source code of a Rust crate

https://github.com/JanLikar/cargo-clone

sudo pacman -S cargo-clone
  • License: Apache-2.0 AND MIT
  • Architecture: x86_64
  • 14 dependencies
  • normalized package name match
  • Matched by: Cargo Clone
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-clone from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment