rust-lang/rust

rust-lang/rust has 2,746,357 source lines of code out of 3,216,511 total lines across 8,493 files, counted with tokei from the main ref at commit 96a18bf5ffa2 on October 29, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

rust-lang/rust: 2,746,357 code lines at commit 96a18bf5ffa2, counted with tokei-14.0.0 on 2026-10-29. Saved result 2e39d7fedbbbf9d43edef4a48e3bfcfbb316724f469448860f386653f8192535.

OctoCounts produced this report by resolving rust-lang/rust to commit 96a18bf5ffa2, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

Repository size insights

This is a very large codebase by counted code lines. Code represents 85.4% of all lines, comments represent 6.9%, and the repository averages 323 code lines per file. Rust accounts for 76.5% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Rust681324540542101713136271216070
JSON3235262835262701
XML31585271584361873
YAML1640151373704392342
Shell133196941686515581271
JavaScript1214667109753018674
TOML32613722984321001779
Python3913034978710562191
C Header8260109604117884618
RPM Specfile27992651201480
TypeScript2480706463775832
C++952384113565560
CSS547373946384407
GNU Style Assembly2738143381104329
Dockerfile10639963128221647
Zsh230523036214
PowerShell427242697720
Fish22238222666
HTML522188192621241
SVG431531122
C++ Header24763068981
LD Script43632386164
C33011987132
Julia1171141723
Autoconf41951314420
Nix3138116814
AsciiDoc19077013
Module-Definition1646301
XSL2584486
Emacs Lisp1333300
CMake1282116
Batch3291676
BASH12614111
Makefile11010
Markdown7026054004763212908
Plain Text14417147016575572

Top language: Rust 76.5%. Generated on .

Counting rules and retention

rust-lang/rust: tokei-14.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does rust-lang/rust have?

rust-lang/rust has 2,746,357 lines of code, plus 222,850 comment lines and 247,304 blank lines, for 3,216,511 total lines at commit 96a18bf5ffa2 on October 29, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the rust-lang/rust line count measured?

OctoCounts resolved the public GitHub repository to commit 96a18bf5ffa2, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for rust-lang/rust?

This OctoCounts report was generated from main at commit 96a18bf5ffa2 on October 29, 2026.

Play the growth animation for rust-lang/rust on this page — 2,746,357 code lines across 36 languages, counted by tokei.