# microsoft/windows-rs SLOC report

> As of 2026-07-16 (commit a4f924122bcd), microsoft/windows-rs contains 1,981,570 total lines: 1,942,062 code, 6,492 comments, 33,016 blank, across 2,775 files in 14 languages (top: Rust 96.3%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving microsoft/windows-rs to commit a4f924122bcd, 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 very large codebase by counted code lines. Code represents 98.0% of all lines, comments represent 0.3%, and the repository averages 700 code lines per file. Rust accounts for 96.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 2,192 | 1,883,272 | 1,869,888 | 3,111 | 10,273 |
| C Header | 5 | 70,353 | 47,546 | 1,011 | 21,796 |
| C | 374 | 20,567 | 20,567 | 0 | 0 |
| TOML | 110 | 3,745 | 3,361 | 29 | 355 |
| C++ | 4 | 351 | 288 | 3 | 60 |
| C# | 3 | 189 | 149 | 12 | 28 |
| XML | 4 | 86 | 86 | 0 | 0 |
| PowerShell | 1 | 113 | 79 | 22 | 12 |
| MSBuild | 3 | 41 | 41 | 0 | 0 |
| HTML | 2 | 35 | 35 | 0 | 0 |
| HLSL | 1 | 20 | 16 | 0 | 4 |
| Batch | 1 | 6 | 6 | 0 | 0 |

Top language (Rust 96.3%). Generated at 2026-07-16T17:16:11.465471298+00:00. Canonical report: https://octocounts.com/github/microsoft/windows-rs

## Report FAQ

### How many lines of code does microsoft/windows-rs have?

microsoft/windows-rs has 1,981,570 total lines, including 1,942,062 code lines, 6,492 comment lines, and 33,016 blank lines.

### How was the microsoft/windows-rs line count measured?

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

### What commit was counted for microsoft/windows-rs?

This OctoCounts report was generated from master at commit a4f924122bcd on 2026-07-16T17:16:11.465471298+00:00.

## Similar repository reports

- [oven-sh/bun](https://octocounts.com/github/oven-sh/bun) — Rust, 1,457,654 code lines
- [aptos-labs/aptos-core](https://octocounts.com/github/aptos-labs/aptos-core) — Rust, 1,439,996 code lines
- [zed-industries/zed](https://octocounts.com/github/zed-industries/zed) — Rust, 1,368,513 code lines
- [openai/codex](https://octocounts.com/github/openai/codex) — Rust, 1,236,363 code lines
- [paritytech/polkadot-sdk](https://octocounts.com/github/paritytech/polkadot-sdk) — Rust, 1,192,097 code lines
- [tinyhumansai/openhuman](https://octocounts.com/github/tinyhumansai/openhuman) — Rust, 1,170,843 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)
