Automic VaultAutomic Vault

brew

Install cargo-public-api with Homebrew, Nix, pacman

List and diff the public API of Rust library crates. Version 0.52.0 via Homebrew; verified 2026-05-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cargo-public-api

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#cargo-public-api

nixpkgs package indexes · pkgs/by-name/ca/cargo-public-api/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S cargo-public-api

Arch Linux sync databases · cargo-public-api · source: geo.mirror.pkgbuild.com

overview

Package summary

List and diff the public API of Rust library crates

Commands and aliases

  • cargo-public-api

history

Project history and usage

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

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cargo-public-apicliglobal executable

freshness

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

page generated2026-07-08
manager version0.52.0
manager updated2026-05-25
local dataok
upstreamcurrent
latest detectedv0.52.0

https://github.com/cargo-public-api/cargo-public-api

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cargo-public-api
Version0.52.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cargo-public-api
Homepagehttps://github.com/cargo-public-api/cargo-public-api
Repositoryhttps://github.com/cargo-public-api/cargo-public-api
Upstream docshttps://github.com/cargo-public-api/cargo-public-api#readme
LicenseMIT
Source archivehttps://github.com/cargo-public-api/cargo-public-api/archive/refs/tags/v0.52.0.tar.gz
Last updated2026-05-25T22:02:40Z
Pulseupdated
Build dependenciespkgconf, rust
Uses from macOScurl
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-public-api
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

cargo-public-api

nix profile install nixpkgs#cargo-public-api
  • normalized package name match
  • Matched by: Cargo Public API
nixpkgs package indexes · api.github.com · 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
pacman95%

cargo-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-api
  • License: MIT
  • Architecture: x86_64
  • 5 dependencies
  • normalized package name match
  • Matched by: Cargo Public API
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-public-api from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment