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