Decision Workspace
enum_common_fields vs enum_variant_accessors vs gratte
Side-by-side comparison of Rust crates
43
enum_common_fields
growingv0.7.0
Macro for easy access to common fields of enums
46
enum_variant_accessors
growingv1.0.2
derive macros to generate is_*, as_* and as_*_mut accessors for enum variants
68
gratte
stablev3.0.1
Helpful macros for working with enums and strings; forked from strum
Core Metrics
| enum_common_fields | enum_variant_accessors | gratte | |
|---|---|---|---|
| Health Score | 43 | 46 | 68 |
| Total Downloads | 126.4K | 595 | 12.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 3 | 0 | 21 |
| Releases | 7 | 3 | 9 |
| Last Updated | 1047d ago | 225d ago | 19d ago |
| Age | 2y 11m | 11m | 1y 6m |
Health Breakdown
enum_common_fields
Maintenance
4
Quality
15
Community
8
Popularity
6
Documentation
10
enum_variant_accessors
Maintenance
10
Quality
17
Community
6
Popularity
3
Documentation
10
gratte
Maintenance
17
Quality
21
Community
10
Popularity
5
Documentation
15
Technical Details
| enum_common_fields | enum_variant_accessors | gratte | |
|---|---|---|---|
| Version | 0.7.0 | 1.0.2 | 3.0.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 3 | 5 | 2 |
| Crate Size | 7KB | 6KB | 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.
- •enum_common_fields has the most downloads (126.4K), suggesting wider adoption.
- •⚠ enum_common_fields has not been updated in over a year.
- •enum_common_fields is pre-1.0 — API may change.