macOS
brew install cargo-public-apilocal Homebrew formula metadata
安装
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 · 来源: api.github.com
sudo pacman -S cargo-public-apiArch Linux sync databases · cargo-public-api · 来源: geo.mirror.pkgbuild.com
概览
List and diff the public API of Rust library crates
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-public-api | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/cargo-public-api/cargo-public-api
安装元数据
| 软件包键 | brew:cargo-public-api |
|---|---|
| 版本 | 0.52.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cargo-public-api |
| 主页 | https://github.com/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 |
| 许可证 | MIT |
| 源码归档 | https://github.com/cargo-public-api/cargo-public-api/archive/refs/tags/v0.52.0.tar.gz |
| 最后更新 | 2026-05-25T22:02:40Z |
| Pulse | updated |
| 构建依赖 | pkgconf, rust |
| macOS 提供的库 | curl |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-api来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.