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:
bloatyAnalyze specific packages with feature filtering:
bloaty --package moosicbox_core --skip-features fail-on-warningsGenerate JSON report:
bloaty --output-format json --report-file analysis