# Installer cargo-clone avec Homebrew, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cargo-clone pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:cargo-clone
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cargo-clone
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-clone
```

  Preuve: nixpkgs package indexes: pkgs/by-name/ca/cargo-clone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-clone
```

  Preuve: Arch Linux sync databases: cargo-clone from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Faits du paquet

- **Clé du paquet:** brew:cargo-clone
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.2.4
- **Résumé source:** Cargo subcommand to fetch the source code of a Rust crate
- **Page d'accueil:** <https://github.com/JanLikar/cargo-clone>
- **Dépôt:** <https://github.com/JanLikar/cargo-clone>
- **Dernière mise à jour:** 2026-06-22T14:02:57-07:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- cargo-clone (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.2.4
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <https://api.github.com/repos/JanLikar/cargo-clone>
- <https://crates.io/api/v1/crates/cargo-clone>
- <https://github.com/JanLikar/cargo-clone#readme>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Nix - cargo-clone: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-clone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-clone - 1.2.4-2: normalized package name match | Arch Linux sync databases: cargo-clone from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A cargo subcommand to fetch the source code of a Rust crate | https://github.com/JanLikar/cargo-clone


## Combined YAML source

View the package source record on GitHub. [combined/cargo-clone.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-clone.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
