# gfx-rs/wgpu SLOC report

> As of 2026-11-16 (commit 49c8107e13f7), gfx-rs/wgpu contains 327,487 total lines: 271,641 code, 23,922 comments, 31,924 blank, across 856 files in 13 languages (top language: Rust 97.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

gfx-rs/wgpu has 271,641 source lines of code out of 327,487 total lines across 856 files, counted with tokei from the trunk ref at commit 49c8107e13f7 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving gfx-rs/wgpu to commit 49c8107e13f7, 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

gfx-rs/wgpu: 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 82.9% of all lines, comments represent 7.3%, and the repository averages 317 code lines per file. Rust accounts for 97.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Rust | 676 | 310,863 | 265,656 | 16,805 | 28,402 |
| WebGPU Shader Language | 61 | 3,300 | 2,470 | 359 | 471 |
| TOML | 43 | 2,483 | 1,755 | 408 | 320 |
| JavaScript | 5 | 1,488 | 1,317 | 36 | 135 |
| Metal Shading Language | 3 | 223 | 180 | 24 | 19 |
| JSON | 1 | 104 | 104 | 0 | 0 |
| HTML | 3 | 64 | 61 | 1 | 2 |
| GLSL | 4 | 50 | 47 | 3 | 0 |
| BASH | 1 | 45 | 21 | 17 | 7 |
| SVG | 2 | 17 | 17 | 0 | 0 |
| YAML | 1 | 13 | 13 | 0 | 0 |
| Markdown | 55 | 8,836 | 0 | 6,268 | 2,568 |

Top language: Rust 97.8%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/gfx-rs/wgpu

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/gfx-rs/wgpu/commit/49c8107e13f7d3176fb00c78a46b6d0352e39ed0?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=bacecf635a8217b31902c0a43292a2c50ced40c39b7c9847583a31e11a3f33b5).

## Report FAQ

### How many lines of code does gfx-rs/wgpu have?

gfx-rs/wgpu has 271,641 lines of code, plus 23,922 comment lines and 31,924 blank lines, for 327,487 total lines at commit 49c8107e13f7 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the gfx-rs/wgpu line count measured?

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

### What commit was counted for gfx-rs/wgpu?

This OctoCounts report was generated from trunk at commit 49c8107e13f7 on November 16, 2026.

## Similar repository reports

- [Zykairotis/aeris-charts](https://octocounts.com/github/Zykairotis/aeris-charts) — Rust, 270,608 code lines
- [storytold/designcraft](https://octocounts.com/github/storytold/designcraft) — Rust, 272,764 code lines
- [storytold/wgpu](https://octocounts.com/github/storytold/wgpu) — Rust, 270,383 code lines
- [zyycn/codex-proxy-rs](https://octocounts.com/github/zyycn/codex-proxy-rs) — Rust, 269,405 code lines
- [smol-machines/smolvm](https://octocounts.com/github/smol-machines/smolvm) — Rust, 268,620 code lines
- [herdrdev/herdr](https://octocounts.com/github/herdrdev/herdr) — Rust, 267,420 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)
