As of 2026-07-31 (commit 9e3391946ba0), rust-lang/crates.io contains 106,920 total lines: 87,068 code, 5,269 comments, 14,583 blank, across 1,670 files in 17 languages (top: Rust 47.1%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving rust-lang/crates.io to commit 9e3391946ba0, 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 medium-sized codebase by counted code lines. Code represents 81.4% of all lines, comments represent 4.9%, and the repository averages 52 code lines per file. Rust accounts for 47.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 349 | 48994 | 40987 | 1269 | 6738 |
| TypeScript | 381 | 29530 | 23339 | 2311 | 3880 |
| YAML | 29 | 12296 | 10428 | 0 | 1868 |
| Svelte | 179 | 6749 | 5885 | 101 | 763 |
| SQL | 572 | 3224 | 2507 | 399 | 318 |
| TOML | 45 | 2300 | 1746 | 285 | 269 |
| JavaScript | 5 | 731 | 524 | 106 | 101 |
| Jinja2 | 47 | 600 | 473 | 0 | 127 |
| CSS | 7 | 737 | 463 | 144 | 130 |
| JSON | 10 | 301 | 301 | 0 | 0 |
| Python | 3 | 347 | 249 | 23 | 75 |
| Shell | 3 | 133 | 82 | 21 | 30 |
Top language (Rust 47.1%). Generated at .
rust-lang/crates.io has 106,920 total lines, including 87,068 code lines, 5,269 comment lines, and 14,583 blank lines.
OctoCounts resolved the public GitHub repository to commit 9e3391946ba0, 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 9e3391946ba0 on 2026-07-31T09:06:08.268733353+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: