rustc-bloat

Community

Identify Rust code bloat from monomorphization.

Authorfasterthanlime
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Analyze Rust binaries to locate code bloat caused by monomorphization, large types, and macro expansion.

Core Features & Use Cases

  • Monomorphization analysis with cargo-llvm-lines to reveal hot copies
  • Large type detection using -Zprint-type-sizes
  • Macro expansion visibility with -Zunpretty=expanded
  • Bloat prioritization guidance for refactoring

Quick Start

Build the target and run the recommended commands, saving outputs to files, then inspect /tmp/llvm-lines.txt for top bloaters.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rustc-bloat
Download link: https://github.com/fasterthanlime/.claude/archive/main.zip#rustc-bloat

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.