cargo-llvm-lines
« Back to VersTracker
Description:
Count lines of LLVM IR per generic function
Type: Formula  |  Latest Version: 0.4.45@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust llvm compiler optimization cargo
Install: brew install cargo-llvm-lines
About:
cargo-llvm-lines is a Cargo subcommand that analyzes Rust crates to count the number of lines of LLVM IR generated for each generic function. This helps developers identify code bloat caused by excessive monomorphization, enabling them to optimize binary size and compile times.
Key Features:
  • Per-function LLVM IR line count reporting
  • Integration as a Cargo subcommand
  • Helps identify generic monomorphization bloat
  • Simple command-line interface
Use Cases:
  • Diagnosing unexpectedly large binary sizes in Rust applications
  • Optimizing generic code to reduce compilation times
Alternatives:
  • cargo-bloat – Focuses on binary size at the function level, whereas cargo-llvm-lines specifically measures LLVM IR lines to target monomorphization issues.
License: Apache-2.0 OR MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 2, 2025 4:53am 0 VERSION_BUMP 3e1197bf
Jan 3, 2025 4:50am 0 VERSION_BUMP 08a44021
Oct 31, 2024 9:27pm 0 VERSION_BUMP 9512d912