macOS
brew install cargo-llvm-lineslocal Homebrew formula metadata
brew
Count lines of LLVM IR per generic function. Version 0.4.46 via Homebrew; verified 2026-05-29.
install
brew install cargo-llvm-lineslocal Homebrew formula metadata
nix profile install nixpkgs#cargo-llvm-linesnixpkgs package indexes · pkgs/by-name/ca/cargo-llvm-lines/package.nix · source: api.github.com
overview
Count lines of LLVM IR per generic function
history
cargo-llvm-lines measures the number and size of LLVM IR instantiations for generic functions in a Rust program. Its README frames the output as a way to find code with the highest leverage for improving compilation metrics.
The crate first appeared on crates.io in November 2017 as version 0.1.0. The README credits the idea to eddyb's suggestion for counting monomorphized functions while debugging compiler memory use, executable size, and compile time.
The package is available through Homebrew and Nix according to the input facts, and crates.io reported 134,082 downloads when checked on 2026-06-30. Its audience is narrower than test runners or build tools, but it is well known among Rust developers investigating monomorphization bloat.
Users run cargo llvm-lines to see total LLVM IR lines, number of copies, and function names, optionally using -p to inspect a package in a multi-crate project or release/LTO settings for a broader view.
It is a package-nerd tool because it exposes otherwise hidden codegen costs in dependency and generic-heavy Rust crates, helping maintainers decide where small API or generic changes can reduce compile time and binary size.
security posture
No matching local secret-handling manifest was found for cargo-llvm-lines. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cargo-llvm-lines | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/dtolnay/cargo-llvm-lines
install metadata
| Package key | brew:cargo-llvm-lines |
|---|---|
| Version | 0.4.46 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/cargo-llvm-lines |
| Homepage | https://github.com/dtolnay/cargo-llvm-lines |
| Repository | https://github.com/dtolnay/cargo-llvm-lines |
| Upstream docs | https://github.com/dtolnay/cargo-llvm-lines#readme |
| License | Apache-2.0 OR MIT |
| Source archive | https://github.com/dtolnay/cargo-llvm-lines/archive/refs/tags/0.4.46.tar.gz |
| Last updated | 2026-05-29T17:20:08+02:00 |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-llvm-lines |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
cargo-llvm-lines
nix profile install nixpkgs#cargo-llvm-linessource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.