Automic VaultAutomic Vault

brew

Install cargo-llvm-lines with Homebrew, Nix

Count lines of LLVM IR per generic function. Version 0.4.46 via Homebrew; verified 2026-05-29.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cargo-llvm-lines

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#cargo-llvm-lines

nixpkgs package indexes · pkgs/by-name/ca/cargo-llvm-lines/package.nix · source: api.github.com

overview

Package summary

Count lines of LLVM IR per generic function

Commands and aliases

  • cargo-llvm-lines

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2017: First crates.io release 0.1.0.
  • 2026: Crates.io latest version 0.4.46 and Homebrew stable version 0.4.46.

Related projects

  • Related tooling includes Cargo, rustc/LLVM IR output, and compiler performance analysis workflows.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cargo-llvm-linescliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.4.46
manager updated2026-05-29
local dataok
upstreamcurrent
latest detected0.4.46

https://github.com/dtolnay/cargo-llvm-lines

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cargo-llvm-lines
Version0.4.46
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cargo-llvm-lines
Homepagehttps://github.com/dtolnay/cargo-llvm-lines
Repositoryhttps://github.com/dtolnay/cargo-llvm-lines
Upstream docshttps://github.com/dtolnay/cargo-llvm-lines#readme
LicenseApache-2.0 OR MIT
Source archivehttps://github.com/dtolnay/cargo-llvm-lines/archive/refs/tags/0.4.46.tar.gz
Last updated2026-05-29T17:20:08+02:00
Pulseupdated
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-llvm-lines
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

cargo-llvm-lines

nix profile install nixpkgs#cargo-llvm-lines
  • normalized package name match
  • Matched by: Cargo Llvm Lines
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-llvm-lines/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment