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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 6744 | 2427232 | 2080481 | 133440 | 213311 |
| JSON | 32 | 352613 | 352612 | 0 | 1 |
| XML | 3 | 158527 | 158436 | 18 | 73 |
| YAML | 12 | 39712 | 37010 | 400 | 2302 |
| Shell | 131 | 19518 | 16734 | 1527 | 1257 |
| JavaScript | 12 | 14610 | 10920 | 3017 | 673 |
| C Header | 8 | 26010 | 9604 | 11788 | 4618 |
| TOML | 320 | 13384 | 9586 | 2057 | 1741 |
| Python | 34 | 12218 | 9251 | 970 | 1997 |
| RPM Specfile | 2 | 7992 | 6512 | 0 | 1480 |
| TypeScript | 24 | 8050 | 6448 | 771 | 831 |
| C++ | 9 | 5075 | 3984 | 570 | 521 |
Top language (Rust 76.4%). Generated at 2026-09-07T04:36:56.049911609+00:00.
rust-lang/rust has 3,185,362 total lines, including 2,723,228 code lines, 218,028 comment lines, and 244,106 blank lines.
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.
This OctoCounts report was generated from main at commit 32d94cc9be3f on 2026-09-07T04:36:56.049911609+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: