# Installer cargo-edit avec Homebrew, apk, Nix, pacman

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

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cargo-edit
```

  Preuve: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-edit
```

  Preuve: Alpine Linux edge package indexes: cargo-edit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S cargo-edit
```

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

## Faits du paquet

- **Clé du paquet:** brew:cargo-edit
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/cargo-edit>
- **Version:** 0.13.13
- **Résumé source:** Utility for managing cargo dependencies from the command-line
- **Page d'accueil:** <https://killercup.github.io/cargo-edit/>
- **Dépôt:** <https://github.com/killercup/cargo-edit>
- **Docs amont:** <https://killercup.github.io/cargo-edit/>
- **Licence:** MIT
- **Archive source:** <https://github.com/killercup/cargo-edit/archive/refs/tags/v0.13.13.tar.gz>
- **Dernière mise à jour:** 2026-07-15T20:49:45Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- cargo-add (cli)
- cargo-rm (cli)
- cargo-set-version (cli)
- cargo-upgrade (cli)
- cargo-add (alias)
- cargo-rm (alias)
- cargo-set-version (alias)
- cargo-upgrade (alias)

## Dépendances de compilation

- pkgconf
- rust

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 0.13.13
- gestionnaire mis à jour: 2026-07-15
- données locales: OK
- dépôt amont: https://github.com/killercup/cargo-edit
- dernière version détectée: v0.13.13 (à jour)
## Historique du projet et usages

cargo-edit is one of the historically important Cargo extension suites: it brought command-line editing of Cargo.toml dependencies, removals, upgrades, and package versions into common Rust workflows before parts of that behavior were absorbed by Cargo itself.

### Historique du projet

The GitHub repository was created in June 2015, early in Rust's post-1.0 package ecosystem, and the crate was published on crates.io in November 2015. Its README describes a tool that extends Cargo with commands for adding, removing, upgrading, and versioning dependencies by modifying Cargo.toml.

cargo-edit originally shipped commands including `cargo add`, `cargo rm`, `cargo upgrade`, and `cargo set-version`. The README now records an important handoff: `cargo add` became integrated into Cargo as of Rust 1.62, and `cargo rm` as of Rust 1.66, while cargo-edit continues to provide commands such as `cargo upgrade` and `cargo set-version`.

### Historique d'adoption

cargo-edit became a standard recommendation because Cargo itself long lacked ergonomic subcommands for editing dependency requirements in manifests. Its presence in Homebrew, Nix, Arch Linux, and Alpine packaging, plus millions of crates.io downloads, reflects broad adoption by Rust developers and CI images.

The upstreaming of `cargo add` and `cargo rm` into Cargo is the strongest adoption signal: workflows popularized by cargo-edit influenced the default Rust toolchain instead of remaining only third-party extensions.

### Modes d'utilisation

Historically, users installed cargo-edit to run commands such as `cargo add serde`, `cargo rm old-crate`, `cargo upgrade`, and `cargo set-version 1.0.0`. Modern users mostly rely on Cargo's built-in add/remove commands and keep cargo-edit for dependency requirement upgrades and manifest version changes.

`cargo upgrade` changes version requirements in Cargo.toml, while `cargo update` only updates versions selected in Cargo.lock. That distinction is central to why cargo-edit remains useful for package-maintenance work.

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

cargo-edit is package-nerd canon because it sits at the exact boundary between package-manager UX and manifest syntax. It made Rust dependency declarations feel more like `npm install` or `go get` workflows while still editing Cargo.toml explicitly.

Its history also shows how successful extension commands can become part of the base package manager once the workflow proves itself.

### Chronologie

- 2015: killercup/cargo-edit GitHub repository created.
- 2015: cargo-edit crate first published on crates.io.
- 2022: Cargo 1.62 integrated `cargo add`, according to the cargo-edit README.
- 2022: Cargo 1.66 integrated `cargo rm`, according to the cargo-edit README.
- 2026: crates.io metadata shows ongoing releases in the 0.13.x line.

### Related projects

- Cargo is the package manager extended by cargo-edit and later absorbed some of its commands.
- cargo-upgrade and cargo-set-version are the remaining command families documented by the README.
- The README points to related Cargo extension commands including cargo-feature and cargo-override.

### Sources

- <https://api.github.com/repos/killercup/cargo-edit>
- <https://crates.io/api/v1/crates/cargo-edit>
- <https://github.com/killercup/cargo-edit>
- <https://raw.githubusercontent.com/killercup/cargo-edit/master/README.md>
- input.source_facts.package-manager


## Notes de sécurité

narrow executable package without higher-risk signals.

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

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-edit
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Autres enregistrements de gestionnaires de paquets

- Nix - cargo-edit: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-edit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-edit - 0.13.10-r0: normalized package name match | Alpine Linux edge package indexes: cargo-edit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Managing cargo dependencies from the command line | https://github.com/killercup/cargo-edit
- apk - cargo-edit-doc - 0.13.10-r0: normalized package name match | Alpine Linux edge package indexes: cargo-edit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Managing cargo dependencies from the command line (documentation) | https://github.com/killercup/cargo-edit
- pacman - cargo-edit - 0.13.13-1: normalized package name match | Arch Linux sync databases: cargo-edit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Managing cargo dependencies from the command line | https://github.com/killercup/cargo-edit/releases


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/fr/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [pkgconf](https://pkg.so/fr/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/fr/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-outdated](https://pkg.so/fr/brew/cargo-outdated/) - Shares pkgdb curated category or tags: cargo, cli, dependencies, developer-tools, package-management.
- [cargo-binstall](https://pkg.so/fr/brew/cargo-binstall/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, package-management, rust.
- [cargo-chef](https://pkg.so/fr/brew/cargo-chef/) - Shares pkgdb curated category or tags: cargo, cli, dependencies, developer-tools, rust.
- [cargo-c](https://pkg.so/fr/brew/cargo-c/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-nextest](https://pkg.so/fr/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-update](https://pkg.so/fr/brew/cargo-update/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-llvm-cov](https://pkg.so/fr/brew/cargo-llvm-cov/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-udeps](https://pkg.so/fr/brew/cargo-udeps/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.

## Combined YAML source

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


## Sources

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