# rust-lang/cargo SLOC report

> 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.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 120,625 | 102,444 | 6,981 | 11,200 |
| JSON | 7 | 3,845 | 3,845 | 0 | 0 |
| TOML | 35 | 1,616 | 1,183 | 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 November 21, 2026. Canonical report: https://octocounts.com/github/rust-lang/cargo

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/rust-lang/cargo/commit/930a674da900a73c1dfbe16be62c42e75bdfdfc0?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=93655b0f44f186dee19977d4c7de9b578e8ca19dabd99cbc5fd4522d2868136c).

## Report FAQ

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

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.

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

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.

### What commit was counted for rust-lang/cargo?

This OctoCounts report was generated from master at commit 930a674da900 on November 21, 2026.

## Similar repository reports

- [ayangweb/BongoCat](https://octocounts.com/github/ayangweb/BongoCat) — Rust, 108,396 code lines
- [zR-JB/graphite-meter](https://octocounts.com/github/zR-JB/graphite-meter) — Rust, 108,271 code lines
- [storytold/texturecraft](https://octocounts.com/github/storytold/texturecraft) — Rust, 107,969 code lines
- [javy-fernandez/dotcraft](https://octocounts.com/github/javy-fernandez/dotcraft) — Rust, 109,469 code lines
- [Soclets/CyborgPL](https://octocounts.com/github/Soclets/CyborgPL) — Rust, 107,657 code lines
- [doubleailes/ocio-rs](https://octocounts.com/github/doubleailes/ocio-rs) — Rust, 110,357 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
