macOS
brew install cargo-public-apilocal Homebrew formula metadata
brew / rank 7282
List and diff the public API of Rust library crates. Version 0.52.0 via Homebrew; verified 2026-05-25. Also installable with nix: nix profile install nixpkgs#cargo-public-api.
install
brew install cargo-public-apilocal Homebrew formula metadata
nix profile install nixpkgs#cargo-public-apinixpkgs package indexes · pkgs/by-name/ca/cargo-public-api/package.nix · source: api.github.com
sudo pacman -S cargo-public-apiArch Linux sync databases · cargo-public-api · source: geo.mirror.pkgbuild.com
overview
List and diff the public API of Rust library crates
history
cargo-public-api is a Cargo subcommand and companion tooling for listing and diffing the public API of Rust library crates.
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.
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.
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.
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.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-public-api | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:cargo-public-api |
|---|---|
| Version | 0.52.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/cargo-public-api/cargo-public-api |
| Repository | https://github.com/cargo-public-api/cargo-public-api |
| Last updated | 2026-05-25T22:02:40Z |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-public-api
nix profile install nixpkgs#cargo-public-apicargo-public-api 0.52.0-1
List and diff the public API of Rust library crates
https://github.com/cargo-public-api/cargo-public-api
sudo pacman -S cargo-public-apisource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.