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.

As of 2026-10-22 (commit 7189d39d9ce9), rust-lang/rust contains 3,211,493 total lines: 2,741,973 code, 222,527 comments, 246,993 blank, across 8,486 files in 36 languages (top: Rust 76.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-22 (commit 7189d39d9ce9), rust-lang/rust contains 3,211,493 total lines: 2,741,973 code, 222,527 comments, 246,993 blank, across 8,486 files in 36 languages (top: Rust 76.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

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

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.754699519+00:00.

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 12 languages, counted by tokei.