🍺 BREW Explorer

← all formulae

cargo-llvm-lines

brew install cargo-llvm-lines v0.4.46 Apache-2.0 OR MIT

Count lines of LLVM IR per generic function

39
30-day installs · #5232
77
90-day · #6191
299
365-day · #6321
510
★ GitHub stars · updated 2mo ago

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Count lines of LLVM IR per generic function",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:09+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cargo-llvm-lines",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-20T22:21:37Z",
  "github_readme_excerpt": "# cargo-llvm-lines\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-dtolnay/cargo--llvm--lines-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/dtolnay/cargo-llvm-lines)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/cargo-llvm-lines.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/cargo-llvm-lines)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/actions/workflow/status/dtolnay/cargo-llvm-lines/ci.yml?branch=master\u0026style=for-the-badge\" height=\"20\"\u003e](https://github.com/dtolnay/cargo-llvm-lines/actions?query=branch%3Amaster)\n\nThis tool measures the number and size of instantiations of each generic\nfunction in a program, indicating which parts of your code offer the highest\nleverage in improving compilation metrics.\n\nGeneric functions in Rust can be instantiated multiple times, so they can\ndisproportionately affect compile time, compiler memory usage, and the size of\ncompiled executables.\n\n## Installation\n\nInstall with `cargo install cargo-llvm-lines`.\n\n## Output\n\nExample output from running `cargo llvm-lines` on its own codebase:\n\n```console\n$ cargo llvm-lines | head -20\n\n  Lines                Copies              Function name\n  -----                ------              -------------\n  51637                1222                (TOTAL)\n   2240 (4.3%,  4.3%)     1 (0.1%,  0.1%)  \u003ccargo_llvm_lines::opts::LlvmLines as clap_builder::derive::Args\u003e::augment_args\n   1190 (2.3%,  6.6%)     1 (0.1%,  0.2%)  \u003ccargo_llvm_lines::opts::LlvmLines as clap_builder::derive::FromArgMatches\u003e::from_arg_matches_mut\n   1005 (1.9%,  8.6%)     3 (0.2%,  0.4%)  alloc::raw_vec::RawVec\u003cT,A\u003e::grow_amortized\n    973 (1.9%, 10.5%)     7 (0.6%,  1.0%)  clap_builder::parser::matches::arg_matches::ArgMatches::try_remove_arg_t\n    939 (1.8%, 12.3%)     7 (0.6%,  1.6%)  alloc::sync::Arc\u003cT\u003e::try_unwrap\n    935 (1.8%, 14.1%)     6 (0.5%,  2.0%)  \u003calloc::vec::Vec\u003cT\u003e as alloc::vec::spec_from_it",
  "github_repo": "dtolnay/cargo-llvm-lines",
  "github_stars": 510,
  "github_topics": [],
  "homepage": "https://github.com/dtolnay/cargo-llvm-lines",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 39,
  "installs_365d": 299,
  "installs_90d": 77,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0 OR MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cargo-llvm-lines",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 5232,
  "rank_365d": 6321,
  "rank_90d": 6191,
  "raw_hash": "fc04f1105fa16a21",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cargo-llvm-lines.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "rustup"
  ],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.4.46",
  "versioned_formulae": [],
  "why_use_this": null
}