cargo-bloat
brew install cargo-bloat
v0.12.1
MIT
Find out what takes most of the space in your executable
24
30-day installs · #6360
69
90-day · #6473
220
365-day · #7113
2.7k
★ GitHub stars · updated 2y ago
Build dependencies
Links
- https://github.com/RazrFalcon/cargo-bloat
- GitHub: RazrFalcon/cargo-bloat
- Brew formula source: Formula/c/cargo-bloat.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"rust"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Find out what takes most of the space in your executable",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:07+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "cargo-bloat",
"github_default_branch": "master",
"github_last_commit_at": "2024-05-10T06:22:24Z",
"github_readme_excerpt": "## cargo-bloat\n\nFind out what takes most of the space in your executable.\n\nSupports ELF (Linux, BSD), Mach-O (macOS) and PE (Windows) binaries.\n\nWASM is not supported. Use [twiggy](https://github.com/rustwasm/twiggy) instead.\n\nInspired by [google/bloaty](https://github.com/google/bloaty).\n\n### Install\n\n```bash\ncargo install cargo-bloat\n```\n\nor\n\n```bash\ncargo install cargo-bloat --no-default-features\n```\n\nif you don\u0027t need regex filtering using the `--filter` option.\n\n### Usage\n\nGet a list of the biggest functions in the release build:\n\n```\n% cargo bloat --release -n 10\nCompiling ...\nAnalyzing target/release/cargo-bloat\n\n File .text Size Crate Name\n 0.9% 7.1% 27.0KiB cargo_bloat cargo_bloat::main\n 0.8% 5.7% 21.4KiB cargo_bloat cargo_bloat::process_crate\n 0.3% 2.3% 8.6KiB [Unknown] read_line_info\n 0.3% 2.1% 7.9KiB std std::sys::unix::process::process_common::Command::capture_env\n 0.3% 2.1% 7.8KiB json json::parser::Parser::parse\n 0.2% 1.7% 6.5KiB [Unknown] elf_add\n 0.2% 1.7% 6.3KiB std __rdos_backtrace_dwarf_add\n 0.2% 1.3% 5.0KiB std \u003crustc_demangle::legacy::Demangle as core::fmt::Display\u003e::fmt\n 0.2% 1.3% 4.9KiB std std::sys_common::backtrace::_print\n 0.2% 1.3% 4.8KiB std core::num::flt2dec::strategy::dragon::format_shortest\n 9.8% 73.5% 278.0KiB And 932 smaller methods. Use -n N to show more.\n13.3% 100.0% 378.0KiB .text section size, the file size is 2.8MiB\n```\n\nGet a list of the biggest dependencies in the release build:\n```\n% cargo bloat --release --crates\nCompiling ...\nAnalyzing target/release/cargo-bloat\n\n File .text Size Crate\n 8.1% 61.2% 231.5KiB std\n 2.5% 19.2% 72.4KiB cargo_bloat\n 1.2% 9.4% 35.5KiB [Unknown]\n 1.0% 7.2% 27.2KiB json\n 0.3% 2.2% 8.5KiB pico_args\n 0.1% 0.4% 1.7KiB multimap\n 0.0% 0.3% 1.1KiB memmap\n 0.0% 0.0% 175B term_size\n 0.0% 0.0% 45B time\n13.3% 100.0% 378.0KiB .text section size, th",
"github_repo": "RazrFalcon/cargo-bloat",
"github_stars": 2749,
"github_topics": [],
"homepage": "https://github.com/RazrFalcon/cargo-bloat",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 24,
"installs_365d": 220,
"installs_90d": 69,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "cargo-bloat",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 6360,
"rank_365d": 7113,
"rank_90d": 6473,
"raw_hash": "587de9d1368f435f",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/c/cargo-bloat.rb",
"tap": "homebrew/core",
"test_dependencies": [
"rustup"
],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.12.1",
"versioned_formulae": [],
"why_use_this": null
}