rust-lang/cargo has 108,613 source lines of code out of 128,193 total lines across 439 files, counted with tokei from the master ref at commit 930a674da900 on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-21 (commit 930a674da900), rust-lang/cargo contains 128,193 total lines: 108,613 code, 7,806 comments, 11,774 blank, across 439 files in 10 languages (top language: Rust 94.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving rust-lang/cargo to commit 930a674da900, 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.
This is a large codebase by counted code lines. Code represents 84.7% of all lines, comments represent 6.1%, and the repository averages 247 code lines per file. Rust accounts for 94.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 357 | 120625 | 102444 | 6981 | 11200 |
| JSON | 7 | 3845 | 3845 | 0 | 0 |
| TOML | 35 | 1616 | 1183 | 209 | 224 |
| JavaScript | 1 | 788 | 650 | 68 | 70 |
| Shell | 6 | 422 | 338 | 40 | 44 |
| Python | 2 | 117 | 88 | 13 | 16 |
| Dockerfile | 2 | 55 | 44 | 2 | 9 |
| XML | 1 | 28 | 21 | 7 | 0 |
| Markdown | 27 | 689 | 0 | 478 | 211 |
| Plain Text | 1 | 8 | 0 | 8 | 0 |
Top language: Rust 94.3%. Generated on .
rust-lang/cargo: 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.
rust-lang/cargo has 108,613 lines of code, plus 7,806 comment lines and 11,774 blank lines, for 128,193 total lines at commit 930a674da900 on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 930a674da900, 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 master at commit 930a674da900 on November 21, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for rust-lang/cargo on this page — 108,613 code lines across 10 languages, counted by tokei.