Cpp2Rust/cpp2rust has 33,627 source lines of code out of 39,820 total lines across 259 files, counted from the master ref at commit a9dae409e8ab by the OctoCounts tokei engine on 2026-10-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-16 (commit a9dae409e8ab), Cpp2Rust/cpp2rust contains 39,820 total lines: 33,627 code, 1,370 comments, 4,823 blank, across 259 files in 7 languages (top: Rust 46.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving Cpp2Rust/cpp2rust to commit a9dae409e8ab, 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 84.4% of all lines, comments represent 3.4%, and the repository averages 130 code lines per file. Rust accounts for 46.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Rust | 140 | 18393 | 15501 | 773 | 2119 |
| C++ | 46 | 16600 | 14757 | 303 | 1540 |
| C Header | 29 | 3038 | 2033 | 165 | 840 |
| C | 32 | 1213 | 930 | 56 | 227 |
| CMake | 6 | 407 | 349 | 6 | 52 |
| TOML | 5 | 65 | 57 | 0 | 8 |
| Markdown | 1 | 104 | 0 | 67 | 37 |
Top language (Rust 46.1%). Generated at .
Cpp2Rust/cpp2rust has 39,820 total lines, including 33,627 code lines, 1,370 comment lines, and 4,823 blank lines.
OctoCounts resolved the public GitHub repository to commit a9dae409e8ab, 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 a9dae409e8ab on 2026-10-16T18:11:55.020423835+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for Cpp2Rust/cpp2rust on this page — 33,627 code lines across 7 languages, counted by tokei.