# rust-lang/book SLOC report

> As of 2026-09-13 (commit 1500248d8f23), rust-lang/book contains 93,142 total lines: 21,095 code, 53,486 comments, 18,561 blank, across 1,987 files in 10 languages (top: Rust 62.1%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving rust-lang/book to commit 1500248d8f23, 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 medium-sized codebase by counted code lines. Code represents 22.6% of all lines, comments represent 57.4%, and the repository averages 11 code lines per file. Rust accounts for 62.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 646 | 17,087 | 13,104 | 1,231 | 2,752 |
| SVG | 47 | 3,989 | 3,602 | 387 | 0 |
| TOML | 572 | 3,718 | 3,038 | 49 | 631 |
| HTML | 52 | 572 | 572 | 0 | 0 |
| XSL | 1 | 464 | 394 | 9 | 61 |
| Shell | 9 | 355 | 174 | 110 | 71 |
| CSS | 5 | 130 | 106 | 10 | 14 |
| JavaScript | 2 | 153 | 105 | 22 | 26 |
| Markdown | 476 | 63,610 | 0 | 48,912 | 14,698 |
| Plain Text | 177 | 3,064 | 0 | 2,756 | 308 |

Top language (Rust 62.1%). Generated at 2026-09-13T16:27:24.754133515+00:00. Canonical report: https://octocounts.com/github/rust-lang/book

## Report FAQ

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

rust-lang/book has 93,142 total lines, including 21,095 code lines, 53,486 comment lines, and 18,561 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 1500248d8f23, 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/book?

This OctoCounts report was generated from main at commit 1500248d8f23 on 2026-09-13T16:27:24.754133515+00:00.

## Similar repository reports

- [notkisk/book](https://octocounts.com/github/notkisk/book) — Rust, 21,095 code lines
- [sopaco/deepwiki-rs](https://octocounts.com/github/sopaco/deepwiki-rs) — Rust, 20,526 code lines
- [ViCo-Lab/candy](https://octocounts.com/github/ViCo-Lab/candy) — Rust, 19,542 code lines
- [Lostone799/QwenASR](https://octocounts.com/github/Lostone799/QwenASR) — Rust, 23,110 code lines
- [firecrawl/anydoc](https://octocounts.com/github/firecrawl/anydoc) — Rust, 23,337 code lines
- [wanghua98/cloudshell](https://octocounts.com/github/wanghua98/cloudshell) — Rust, 23,435 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
