rust-lang/rust

rust-lang/rust has 2,741,973 source lines of code out of 3,211,493 total lines across 8,486 files, counted from the main ref at commit 7189d39d9ce9 by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

rust-lang/rust: 2,741,973 code lines at commit 7189d39d9ce9, counted with tokei-14.0.0 on 2026-10-22. Saved result e4ec5d12fc2d21f12500b769d7c8fed83f6b07837da8c3f1cfdfd780046608e2.

OctoCounts produced this report by resolving rust-lang/rust to commit 7189d39d9ce9, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

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
Rust680424490812097352135967215762
JSON3235261835261701
XML31585271584361873
YAML1640151373704392342
Shell133196891686315561270
JavaScript1214660109703017673
TOML32813743985920991785
Python3913026979010502186
C Header8260109604117884618
RPM Specfile27992651201480
TypeScript2480706463775832
C++952164088569559
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
Markdown7026052704762012907
Plain Text14417146016574572

Top language (Rust 76.5%). Generated at .

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 3,211,493 total lines, including 2,741,973 code lines, 222,527 comment lines, and 246,993 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 7189d39d9ce9, 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 7189d39d9ce9 on 2026-10-22T21:35:00.754699519Z.

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,741,973 code lines across 36 languages, counted by tokei.