macOS
brew install cargo-bloatlocal Homebrew formula metadata
brew
cargo-bloat のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install cargo-bloatlocal Homebrew formula metadata
sudo apk add cargo-bloatAlpine Linux edge package indexes · cargo-bloat · ソース: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-bloatnixpkgs package indexes · pkgs/by-name/ca/cargo-bloat/package.nix · ソース: api.github.com
sudo pacman -S cargo-bloatArch Linux sync databases · cargo-bloat · ソース: geo.mirror.pkgbuild.com
概要
Find out what takes most of the space in your executable
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
cargo-bloat | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/RazrFalcon/cargo-bloat
インストールメタデータ
| パッケージキー | brew:cargo-bloat |
|---|---|
| バージョン | 0.12.1 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/cargo-bloat |
| ホームページ | https://github.com/RazrFalcon/cargo-bloat |
| リポジトリ | https://github.com/RazrFalcon/cargo-bloat |
| 上流ドキュメント | https://github.com/RazrFalcon/cargo-bloat#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/RazrFalcon/cargo-bloat/archive/refs/tags/v0.12.1.tar.gz |
| ビルド依存関係 | rust |
| Bottle | 利用可能 (対象 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
cargo-bloat
nix profile install nixpkgs#cargo-bloatcargo-bloat 0.12.1-r0
Find out what takes most of the space in your Rust executable
https://github.com/RazrFalcon/cargo-bloat
sudo apk add cargo-bloatcargo-bloat 0.12.1-2
Find out what takes most of the space in your executable
https://github.com/RazrFalcon/cargo-bloat
sudo pacman -S cargo-bloatソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.