rust-lang/rust

rust-lang/rust has 2,755,673 source lines of code out of 3,227,974 total lines across 8,525 files, counted with tokei from the main ref at commit 4de190d26178 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

rust-lang/rust: 2,755,673 code lines at commit 4de190d26178, counted with tokei-15.0.0 on 2026-11-16. Saved result b803a49ee4bd9afd36cd2b79e5750158ee2a6e39b601ccb6cfc5e17849d96624.

OctoCounts produced this report by resolving rust-lang/rust to commit 4de190d26178, 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.6% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Rust683524647702110700137006217064
JSON3235264135264001
XML31585271584361873
YAML1740198374044452349
Shell134196701686115331276
JavaScript1214734110243026684
TOML331139671004721021818
Python3913087982810632196
C Header8260109604117884618
RPM Specfile27992651201480
TypeScript2480846468783833
C++951444032568544
CSS548064000397409
GNU Style Assembly2738143381104329
Dockerfile10640013133221647
Zsh230523036214
PowerShell5274827111423
Fish22238222666
HTML522189192721241
SVG431531122
C++ Header24763068981
LD Script43632386164
C33011987132
Julia1171141723
Autoconf41881254320
Nix3138116814
AsciiDoc19077013
Module-Definition1646301
XSL2584486
Emacs Lisp1333300
CMake1282116
Batch3291676
BASH12614111
Makefile11010
Markdown7046087404788812986
Plain Text14417147016575572

Top language: Rust 76.6%. Generated on .

Counting rules and retention

rust-lang/rust: tokei-15.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,755,673 lines of code, plus 223,869 comment lines and 248,432 blank lines, for 3,227,974 total lines at commit 4de190d26178 on November 16, 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 4de190d26178, 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 4de190d26178 on November 16, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

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