Decision Workspace
enum_from_variant vs extrum vs repr_cast
Side-by-side comparison of Rust crates
40
enum_from_variant
growingv0.1.1
A Rust macro to generate From<T> trait implementations for enum variants, simplifying error conversions and enum mapping.
46
extrum
experimentalv0.1.3
A macro for defining enum-like types with a specified underlying integer type.
37
repr_cast
experimentalv0.1.0
A procedural macro that enhances fieldless enums with proper conversions between enum variants and their integer representation types
Core Metrics
| enum_from_variant | extrum | repr_cast | |
|---|---|---|---|
| Health Score | 40 | 46 | 37 |
| Total Downloads | 2.5K | 161 | 50 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 2 | 3 | 1 |
| Last Updated | 843d ago | 119d ago | 319d ago |
| Age | 2y 3m | 4m | 10m |
Health Breakdown
enum_from_variant
Maintenance
4
Quality
14
Community
5
Popularity
4
Documentation
13
extrum
Maintenance
13
Quality
16
Community
3
Popularity
3
Documentation
11
repr_cast
Maintenance
3
Quality
13
Community
6
Popularity
2
Documentation
13
Technical Details
| enum_from_variant | extrum | repr_cast | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.3 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 0 | 4 |
| Crate Size | 3KB | 4KB | 24KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2015 | 2021 |
| MSRV | — | 1.32.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •extrum leads with a health score of 46/100, but none of the options score above 80.
- •enum_from_variant has the most downloads (2.5K), suggesting wider adoption.
- •⚠ enum_from_variant has not been updated in over a year.