# cargo-bloat を Homebrew, apk, Nix, pacman でインストール

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

## インストール

```sh
sudo av install brew:cargo-bloat
```

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

### macOS

- Homebrew (100%):

```sh
brew install cargo-bloat
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-bloat
```

  証拠: Alpine Linux edge package indexes: cargo-bloat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-bloat
```

  証拠: nixpkgs package indexes: pkgs/by-name/ca/cargo-bloat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-bloat
```

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

## パッケージ情報

- **パッケージキー:** brew:cargo-bloat
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cargo-bloat>
- **バージョン:** 0.12.1
- **ソース概要:** Find out what takes most of the space in your executable
- **ホームページ:** <https://github.com/RazrFalcon/cargo-bloat>
- **リポジトリ:** <https://github.com/RazrFalcon/cargo-bloat>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/RazrFalcon/cargo-bloat/archive/refs/tags/v0.12.1.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- cargo-bloat (cli)
- cargo-bloat (エイリアス)

## ビルド依存関係

- rust

## インストール挙動

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

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.12.1
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/RazrFalcon/cargo-bloat
- 検出された最新: v0.12.1 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

cargo-bloat is a Cargo subcommand for explaining where compiled Rust binary size goes. It analyzes release artifacts and reports the largest functions or crates contributing to executable text size.

### プロジェクトの歴史

Yevhenii Reizner's cargo-bloat repository was created in January 2018, and version 0.1.0 was published to crates.io a few days later. The README describes the package as a way to find what takes most of the space in an executable, with support for ELF, Mach-O, and PE binaries.

The project was explicitly inspired by Google's Bloaty binary size profiler while adopting a Rust/Cargo-specific interface. Over later releases it added and kept options such as per-crate views, filtering, splitting standard-library crates, full function names, wide output, and JSON output.

### 採用の歴史

cargo-bloat spread because Rust developers regularly need size explanations for CLI tools, embedded-adjacent binaries, WebAssembly-adjacent investigations, and release optimization. Crates.io places it in the Cargo plugins category and reports more than 360,000 downloads.

Its package-manager footprint is broader than a one-off Cargo plugin: the input records Homebrew, Alpine, Nix, and Arch packaging. That matters because size-analysis tools are often installed globally on developer machines and CI images rather than vendored into projects.

### 使われ方

The common path is `cargo install cargo-bloat` and then `cargo bloat --release -n 10` to list the largest functions in the release build. `cargo bloat --release --crates` switches the view to crate-level contribution.

The README emphasizes that per-crate numbers are estimates, not exact accounting. It also notes that WebAssembly is not supported and points users toward twiggy for that use case.

### パッケージ好きにとっての重要性

cargo-bloat is a classic package-nerd tool because it turns compiler output into a ranked table that directly informs dependency choices. It is one of the Rust ecosystem's small, sharp CLI packages that makes invisible package cost visible.

Its relationship to Bloaty and twiggy also shows how Rust packaging borrowed from general binary-analysis culture while building Cargo-native workflows for Rust developers.

### タイムライン

- 2018-01-07: GitHub repository RazrFalcon/cargo-bloat was created.
- 2018-01-11: cargo-bloat 0.1.0 was published on crates.io.
- 2018-2020: The 0.2 through 0.10 releases iterated quickly on Cargo-plugin binary-size reporting.
- 2022-06-04: Version 0.11.1 was published.
- 2024-05-10: Version 0.12.1 was published.

### Related projects

- google/bloaty is cited by the README as an inspiration.
- rustwasm/twiggy is recommended by the README for WebAssembly size analysis.
- Cargo's plugin mechanism provides the `cargo bloat` subcommand interface.

### ソース

- GitHub repository API metadata: https://api.github.com/repos/RazrFalcon/cargo-bloat
- Official README: https://github.com/RazrFalcon/cargo-bloat#readme
- Package-manager adoption from source_facts.package-manager.
- crates.io API metadata and versions: https://crates.io/api/v1/crates/cargo-bloat


## セキュリティノート

narrow executable package without higher-risk signals.

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

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

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-bloat
- **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-bloat: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-bloat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-bloat - 0.12.1-r0: normalized package name match | Alpine Linux edge package indexes: cargo-bloat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Find out what takes most of the space in your Rust executable | https://github.com/RazrFalcon/cargo-bloat
- pacman - cargo-bloat - 0.12.1-2: normalized package name match | Arch Linux sync databases: cargo-bloat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Find out what takes most of the space in your executable | https://github.com/RazrFalcon/cargo-bloat


## 関連リンク

- [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.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-binutils](https://pkg.so/ja/brew/cargo-binutils/) - Shares pkgdb curated category or tags: cargo, cargo-subcommands, cli, developer-tools, rust.
- [cargo-bundle](https://pkg.so/ja/brew/cargo-bundle/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-instruments](https://pkg.so/ja/brew/cargo-instruments/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, profiling, rust.
- [cargo-shear](https://pkg.so/ja/brew/cargo-shear/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.
- [cargo-flamegraph](https://pkg.so/ja/brew/cargo-flamegraph/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, profiling, rust.
- [cargo-sort](https://pkg.so/ja/brew/cargo-sort/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.
- [cargo-show-asm](https://pkg.so/ja/brew/cargo-show-asm/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.
- [cargo-binstall](https://pkg.so/ja/brew/cargo-binstall/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.

## Combined YAML source

View the package source record on GitHub. [combined/cargo-bloat.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-bloat.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
