# Cpp2Rust/cpp2rust SLOC report

> As of 2026-10-22 (commit 26ff6db42bf3), Cpp2Rust/cpp2rust contains 41,846 total lines: 35,055 code, 1,591 comments, 5,200 blank, across 289 files in 7 languages (top: Rust 48.7%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

Cpp2Rust/cpp2rust has 35,055 source lines of code out of 41,846 total lines across 289 files, counted from the master ref at commit 26ff6db42bf3 by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving Cpp2Rust/cpp2rust to commit 26ff6db42bf3, 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 83.8% of all lines, comments represent 3.8%, and the repository averages 121 code lines per file. Rust accounts for 48.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 159 | 20,413 | 17,067 | 892 | 2,454 |
| C++ | 56 | 16,497 | 14,611 | 321 | 1,565 |
| C Header | 28 | 3,071 | 2,001 | 222 | 848 |
| C | 34 | 1,286 | 967 | 83 | 236 |
| CMake | 6 | 410 | 352 | 6 | 52 |
| TOML | 5 | 65 | 57 | 0 | 8 |
| Markdown | 1 | 104 | 0 | 67 | 37 |

Top language (Rust 48.7%). Generated at 2026-10-22T06:05:33.265632361+00:00. Canonical report: https://octocounts.com/github/Cpp2Rust/cpp2rust

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/Cpp2Rust/cpp2rust/commit/26ff6db42bf33b7a7ef8485e321a9b8736f627a0?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=c00de2fc8af7abd7fec81e1eb6573b6fcda8d8380a3c9935ca0562776214d744).

## Report FAQ

### How many lines of code does Cpp2Rust/cpp2rust have?

Cpp2Rust/cpp2rust has 41,846 total lines, including 35,055 code lines, 1,591 comment lines, and 5,200 blank lines.

### How was the Cpp2Rust/cpp2rust line count measured?

OctoCounts resolved the public GitHub repository to commit 26ff6db42bf3, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for Cpp2Rust/cpp2rust?

This OctoCounts report was generated from master at commit 26ff6db42bf3 on 2026-10-22T06:05:33.265632361+00:00.

## Similar repository reports

- [mlm-games/miniter](https://octocounts.com/github/mlm-games/miniter) — Rust, 35,216 code lines
- [BurntSushi/ripgrep](https://octocounts.com/github/BurntSushi/ripgrep) — Rust, 35,349 code lines
- [RyanCodrai/turbovec](https://octocounts.com/github/RyanCodrai/turbovec) — Rust, 34,699 code lines
- [espressif/idf-im-ui](https://octocounts.com/github/espressif/idf-im-ui) — Rust, 35,496 code lines
- [rwf2/Rocket](https://octocounts.com/github/rwf2/Rocket) — Rust, 35,529 code lines
- [LingyunStudio/RustMusic](https://octocounts.com/github/LingyunStudio/RustMusic) — Rust, 35,875 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)
- [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)
