Decision Workspace
include-wgsl-oil vs wgsl_preprocessor vs naga-to-tokenstream
Side-by-side comparison of Rust crates
48
include-wgsl-oil
growingv0.2.9
Includes a WGSL file with the `naga-oil` preprocessor.
46
wgsl_preprocessor
growingv1.1.4
An unofficial preprocessor for WGSL written in Rust for WGPU.
44
naga-to-tokenstream
growingv0.8.0
Creates a TokenStream describing parts of a Naga module.
Core Metrics
| include-wgsl-oil | wgsl_preprocessor | naga-to-tokenstream | |
|---|---|---|---|
| Health Score | 48 | 46 | 44 |
| Total Downloads | 26.6K | 10.6K | 36.1K |
| 30d Downloads | 287 | 43 | 355 |
| Dependents | 13 | 0 | 16 |
| Releases | 11 | 8 | 15 |
| Last Updated | 351d ago | 585d ago | 351d ago |
| Age | 2y 7m | 3y 8m | 2y 7m |
Health Breakdown
include-wgsl-oil
Maintenance
9
Quality
15
Community
9
Popularity
5
Documentation
10
wgsl_preprocessor
Maintenance
4
Quality
21
Community
6
Popularity
5
Documentation
10
naga-to-tokenstream
Maintenance
8
Quality
12
Community
9
Popularity
5
Documentation
10
Technical Details
| include-wgsl-oil | wgsl_preprocessor | naga-to-tokenstream | |
|---|---|---|---|
| Version | 0.2.9 | 1.1.4 | 0.8.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | GPL-2.0-or-later | MIT |
| Dependencies | 14 | 7 | 7 |
| Crate Size | 18KB | 19KB | 13KB |
| Features | 4 | 3 | 1 |
| Yanked % | 0.0% | 0.0% | 6.7% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •include-wgsl-oil leads with a health score of 48/100, but none of the options score above 80.
- •naga-to-tokenstream has the most downloads (36.1K), suggesting wider adoption.
- •⚠ wgsl_preprocessor has not been updated in over a year.
- •include-wgsl-oil, naga-to-tokenstream are pre-1.0 — API may change.