Skip to main content

Crate bloaty

Crate bloaty 

Source
Expand description

Binary size analysis tool for Rust workspace packages.

bloaty is a command-line tool that measures and compares the size impact of Cargo features on both library and binary targets in a Rust workspace. It builds packages with different feature combinations and generates detailed size reports in multiple formats.

This crate provides only a binary executable. For usage documentation, run:

bloaty --help

§Features

  • Feature size analysis for rlib and binary targets
  • Multiple output formats (text, JSON, JSONL)
  • Package and feature filtering with regex patterns
  • Integration with cargo-bloat, cargo-llvm-lines, and cargo-size

§Example Usage

Analyze all workspace packages:

bloaty

Analyze specific packages with feature filtering:

bloaty --package moosicbox_core --skip-features fail-on-warnings

Generate JSON report:

bloaty --output-format json --report-file analysis