# Installer cargo-public-api avec Homebrew, Nix, pacman

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

## installation

```sh
sudo av install brew:cargo-public-api
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cargo-public-api
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-public-api
```

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

- pacman (92%):

```sh
sudo pacman -S cargo-public-api
```

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

## Faits du paquet

- **Clé du paquet:** brew:cargo-public-api
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.52.0
- **Résumé source:** List and diff the public API of Rust library crates
- **Page d'accueil:** <https://github.com/cargo-public-api/cargo-public-api>
- **Dépôt:** <https://github.com/cargo-public-api/cargo-public-api>
- **Dernière mise à jour:** 2026-05-25T22:02:40Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- cargo-public-api (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

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

cargo-public-api is a Cargo subcommand and companion tooling for listing and diffing the public API of Rust library crates.

### Historique du projet

The GitHub repository was created in January 2022, and the crate appeared on crates.io in April 2022. The README explains that it builds rustdoc JSON and uses it to list public items or compare APIs across releases and commits.

### Historique d'adoption

The tool is packaged on crates.io and listed in Homebrew, Nix, and Arch package facts for this batch. crates.io classifies it as both a command-line utility and a Cargo plugin, reflecting its use from local terminals and CI.

### Modes d'utilisation

The README shows cargo public-api for listing a crate API, cargo public-api diff for comparing against a published version, latest release, or commit range, and a CI pattern that snapshots API output to catch unintended public API changes.

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

Rust package maintainers use it to make semver review concrete: instead of manually scanning exported items, they can diff rustdoc-derived public API output and gate changes in CI.

### Chronologie

- 2022: GitHub repository created and first crates.io release published.
- 2025: README compatibility matrix tied releases to specific rustdoc JSON nightly ranges.
- 2026: crates.io reported v0.52.0 as the latest release.

### Related projects

- The project relies on rustdoc JSON from the Rust toolchain.
- The README recommends public-api, rustdoc-json, and rustup-toolchain crates for CI tests.

### Sources

- <https://api.github.com/repos/cargo-public-api/cargo-public-api>
- <https://github.com/cargo-public-api/cargo-public-api>
- <https://github.com/cargo-public-api/cargo-public-api#readme>
- <https://crates.io/api/v1/crates/cargo-public-api>
- <https://formulae.brew.sh/api/formula/cargo-public-api.json>


## Notes de sécurité

library-like package without higher-risk signals.

- **Risque Geiger:** vert / faible
- library-like package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Nix - cargo-public-api: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-public-api/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-public-api - 0.52.0-1: normalized package name match | Arch Linux sync databases: cargo-public-api from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | List and diff the public API of Rust library crates | https://github.com/cargo-public-api/cargo-public-api


## Combined YAML source

View the package source record on GitHub. [combined/cargo-public-api.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-public-api.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
