Decision Workspace
rstructor_derive vs rstructor vs xgrammar-rs
Side-by-side comparison of Rust crates
57
rstructor_derive
growingv0.2.9
Derive macros for the rstructor library
57
rstructor
growingv0.2.9
Rust equivalent of Python's Instructor + Pydantic: Extract structured, validated data from LLMs (OpenAI, Anthropic, Grok, Gemini) using type-safe Rust structs and enums
58
xgrammar-rs
experimentalv0.1.32
Efficient, Flexible and Portable Structured Generation for Rust - Rust bindings for XGrammar
Core Metrics
| rstructor_derive | rstructor | xgrammar-rs | |
|---|---|---|---|
| Health Score | 57 | 57 | 58 |
| Total Downloads | 4.4K | 3.0K | 1.4K |
| 30d Downloads | 293 | 274 | 669 |
| Dependents | 22 | 14 | 0 |
| Releases | 27 | 22 | 6 |
| Last Updated | 42d ago | 42d ago | 2d ago |
| Age | 1y | 1y | 4m |
Health Breakdown
rstructor_derive
Maintenance
16
Quality
14
Community
10
Popularity
4
Documentation
13
rstructor
Maintenance
16
Quality
15
Community
9
Popularity
4
Documentation
13
xgrammar-rs
Maintenance
22
Quality
13
Community
6
Popularity
4
Documentation
13
Technical Details
| rstructor_derive | rstructor | xgrammar-rs | |
|---|---|---|---|
| Version | 0.2.9 | 0.2.9 | 0.1.32 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | Apache-2.0 |
| Dependencies | 6 | 12 | 12 |
| Crate Size | 22KB | 128KB | 120KB |
| Features | 0 | 7 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •xgrammar-rs leads with a health score of 58/100, but none of the options score above 80.
- •rstructor_derive has the most downloads (4.4K), suggesting wider adoption.