macOS
brew install cargo-public-apilocal Homebrew formula metadata
brew
List and diff the public API of Rust library crates. Version 0.52.0 via Homebrew; verified 2026-05-25.
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 | cli | global executable |
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.
https://github.com/cargo-public-api/cargo-public-api
install metadata
| Package key | brew:cargo-public-api |
|---|---|
| Version | 0.52.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-public-api |
| Homepage | https://github.com/cargo-public-api/cargo-public-api |
| Repository | https://github.com/cargo-public-api/cargo-public-api |
| Upstream docs | https://github.com/cargo-public-api/cargo-public-api#readme |
| License | MIT |
| Source archive | https://github.com/cargo-public-api/cargo-public-api/archive/refs/tags/v0.52.0.tar.gz |
| Last updated | 2026-05-25T22:02:40Z |
| Pulse | updated |
| Build dependencies | pkgconf, rust |
| Uses from macOS | curl |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-public-api |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
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.