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.
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.
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.
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 | 20413 | 17067 | 892 | 2454 |
| C++ | 56 | 16497 | 14611 | 321 | 1565 |
| C Header | 28 | 3071 | 2001 | 222 | 848 |
| C | 34 | 1286 | 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 .
Cpp2Rust/cpp2rust has 41,846 total lines, including 35,055 code lines, 1,591 comment lines, and 5,200 blank lines.
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.
This OctoCounts report was generated from master at commit 26ff6db42bf3 on 2026-10-22T06:05:33.265632361+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 — 35,055 code lines across 7 languages, counted by tokei.