Decision Workspace
xgrammar-rs vs glrmask vs purecard
Side-by-side comparison of Rust crates
50
xgrammar-rs
experimentalv0.1.33
Efficient, Flexible and Portable Structured Generation for Rust - Rust bindings for XGrammar
41
glrmask
experimentalv0.1.1
Extremely fast grammar-constrained decoding for LLMs
51
purecard
experimentalv0.4.1
Emitted-subset grammar decoder for Legend Pure with a partial schema-aware token-mask overlay.
Core Metrics
| xgrammar-rs | glrmask | purecard | |
|---|---|---|---|
| Health Score | 50 | 41 | 51 |
| Total Downloads | 14.4K | 43 | 630 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 7 | 2 | 8 |
| Last Updated | 151d ago | 83d ago | 36d ago |
| Age | 11m | 2m | 3m |
Health Breakdown
xgrammar-rs
Maintenance
15
Quality
11
Community
6
Popularity
5
Documentation
13
glrmask
Maintenance
9
Quality
11
Community
6
Popularity
2
Documentation
13
purecard
Maintenance
17
Quality
13
Community
6
Popularity
3
Documentation
12
Technical Details
| xgrammar-rs | glrmask | purecard | |
|---|---|---|---|
| Version | 0.1.33 | 0.1.1 | 0.4.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 12 | 20 | 10 |
| Crate Size | 2.5MB | 2.0MB | 948KB |
| Features | 3 | 2 | 5 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | 1.90 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •purecard leads with a health score of 51/100, but none of the options score above 80.
- •xgrammar-rs has the most downloads (14.4K), suggesting wider adoption.