# cargo-public-api を Homebrew, Nix, pacman でインストール

cargo-public-api のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

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

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:cargo-public-api
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cargo-public-api>
- **バージョン:** 0.52.0
- **ソース概要:** List and diff the public API of Rust library crates
- **ホームページ:** <https://github.com/cargo-public-api/cargo-public-api>
- **リポジトリ:** <https://github.com/cargo-public-api/cargo-public-api>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/cargo-public-api/cargo-public-api/archive/refs/tags/v0.52.0.tar.gz>
- **最終更新:** 2026-05-25T22:02:40Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- cargo-public-api (cli)
- cargo-public-api (エイリアス)

## ビルド依存関係

- pkgconf
- rust

## macOS 提供ライブラリ

- curl

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.52.0
- マネージャ更新日: 2026-05-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/cargo-public-api/cargo-public-api
- 検出された最新: v0.52.0 (最新)
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## ソースデータベース詳細

- **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:** head, stable

## 他のパッケージマネージャ記録

- 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


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/ja/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-llvm-lines](https://pkg.so/ja/brew/cargo-llvm-lines/) - Shares pkgdb curated category or tags: cargo, cli, code-analysis, developer-tools, rust.
- [cargo-binstall](https://pkg.so/ja/brew/cargo-binstall/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-c](https://pkg.so/ja/brew/cargo-c/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-nextest](https://pkg.so/ja/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [oasdiff](https://pkg.so/ja/brew/oasdiff/) - Shares pkgdb curated category or tags: api, breaking-changes, cli, developer-tools.
- [cargo-edit](https://pkg.so/ja/brew/cargo-edit/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-update](https://pkg.so/ja/brew/cargo-update/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-llvm-cov](https://pkg.so/ja/brew/cargo-llvm-cov/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-about](https://pkg.so/ja/brew/cargo-about/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cargo, cli, developer, developer-tools.
- [cargo-careful](https://pkg.so/ja/brew/cargo-careful/) - Both packages touch the same language runtime or ecosystem. Shared terms: cargo, cli, code, developer, developer-tools.

## 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)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
