Decision Workspace
variant-builder-macro vs error-tree vs gratte
Side-by-side comparison of Rust crates
39
variant-builder-macro
growingv0.3.0
This crate gives us the VariantBuider proc macro which can be used to streamline creting an enum from wrapping variants each using the builder pattern.
44
error-tree
growingv0.6.0
This crate let's us use the `error_tree!` proc macro for ergonomic error hierarchy definition
68
gratte
stablev3.0.1
Helpful macros for working with enums and strings; forked from strum
Core Metrics
| variant-builder-macro | error-tree | gratte | |
|---|---|---|---|
| Health Score | 39 | 44 | 68 |
| Total Downloads | 2.4K | 65.1K | 12.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 100 | 21 |
| Releases | 3 | 7 | 9 |
| Last Updated | 466d ago | 677d ago | 19d ago |
| Age | 1y 10m | 2y 5m | 1y 6m |
Health Breakdown
variant-builder-macro
Maintenance
6
Quality
13
Community
6
Popularity
4
Documentation
10
error-tree
Maintenance
5
Quality
13
Community
10
Popularity
6
Documentation
10
gratte
Maintenance
17
Quality
21
Community
10
Popularity
5
Documentation
15
Technical Details
| variant-builder-macro | error-tree | gratte | |
|---|---|---|---|
| Version | 0.3.0 | 0.6.0 | 3.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 8 | 9 | 2 |
| Crate Size | 15KB | 20KB | 9KB |
| Features | 0 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | 1.85.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •gratte leads with a health score of 68/100, but none of the options score above 80.
- •error-tree has the most downloads (65.1K), suggesting wider adoption.
- •⚠ variant-builder-macro, error-tree have not been updated in over a year.
- •variant-builder-macro, error-tree are pre-1.0 — API may change.