rust-lang/rust SLOC report

As of 2026-09-07 (commit 32d94cc9be3f), rust-lang/rust contains 3,185,362 total lines: 2,723,228 code, 218,028 comments, 244,106 blank, across 8,401 files in 36 languages (top: Rust 76.4%). Counted with tokei via OctoCounts.

As of 2026-09-07 (commit 32d94cc9be3f), rust-lang/rust contains 3,185,362 total lines: 2,723,228 code, 218,028 comments, 244,106 blank, across 8,401 files in 36 languages (top: Rust 76.4%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving rust-lang/rust to commit 32d94cc9be3f, 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.5% of all lines, comments represent 6.8%, and the repository averages 324 code lines per file. Rust accounts for 76.4% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Rust674424272322080481133440213311
JSON3235261335261201
XML31585271584361873
YAML1239712370104002302
Shell131195181673415271257
JavaScript1214610109203017673
C Header8260109604117884618
TOML32013384958620571741
Python341221892519701997
RPM Specfile27992651201480
TypeScript2480506448771831
C++950753984570521

Top language (Rust 76.4%). Generated at 2026-09-07T04:36:56.049911609+00:00.

Report FAQ

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

rust-lang/rust has 3,185,362 total lines, including 2,723,228 code lines, 218,028 comment lines, and 244,106 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 32d94cc9be3f, 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 32d94cc9be3f on 2026-09-07T04:36:56.049911609+00:00.

Similar repository reports

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