Decision Workspace
newtypedecl vs wrapper-lite vs g2gen
Side-by-side comparison of Rust crates
45
newtypedecl
growingv0.0.1
declarative newtype macro
55
wrapper-lite
growingv0.6.2
Helper macro for building a wrapper type and implementing common traits for it.
54
g2gen
growingv1.2.2
A macro to create types that implement fast finite field arithmetic.
Core Metrics
| newtypedecl | wrapper-lite | g2gen | |
|---|---|---|---|
| Health Score | 45 | 55 | 54 |
| Total Downloads | 1.5K | 138.6K | 6.7M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 59 | 11 |
| Releases | 2 | 13 | 10 |
| Last Updated | 62d ago | 90d ago | 566d ago |
| Age | 2y 11m | 1y 4m | 7y 6m |
Health Breakdown
newtypedecl
Maintenance
12
Quality
15
Community
4
Popularity
4
Documentation
10
wrapper-lite
Maintenance
15
Quality
12
Community
10
Popularity
6
Documentation
12
g2gen
Maintenance
4
Quality
19
Community
9
Popularity
8
Documentation
14
Technical Details
| newtypedecl | wrapper-lite | g2gen | |
|---|---|---|---|
| Version | 0.0.1 | 0.6.2 | 1.2.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT/Apache-2.0 |
| Dependencies | 1 | 0 | 4 |
| Crate Size | 73KB | 15KB | 12KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 15.4% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | 1.56.0 | 1.61 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •wrapper-lite leads with a health score of 55/100, but none of the options score above 80.
- •g2gen has the most downloads (6.7M), suggesting wider adoption.
- •⚠ g2gen has not been updated in over a year.
- •newtypedecl, wrapper-lite are pre-1.0 — API may change.