Decision Workspace
enum_from_variant vs repr_cast vs caret
Side-by-side comparison of Rust crates
41
enum_from_variant
growingv0.1.1
A Rust macro to generate From<T> trait implementations for enum variants, simplifying error conversions and enum mapping.
41
repr_cast
experimentalv0.1.0
A procedural macro that enhances fieldless enums with proper conversions between enum variants and their integer representation types
71
caret
growingv0.9.0
Macros for declaring non-exhaustive C-style enumerations, with named members
Core Metrics
| enum_from_variant | repr_cast | caret | |
|---|---|---|---|
| Health Score | 41 | 41 | 71 |
| Total Downloads | 2.5K | 33 | 352.1K |
| 30d Downloads | 4 | 3 | 30.9K |
| Dependents | 0 | 0 | 273 |
| Releases | 2 | 1 | 30 |
| Last Updated | 647d ago | 122d ago | 24d ago |
| Age | 1y 9m | 4m | 4y 9m |
Health Breakdown
enum_from_variant
Maintenance
5
Quality
14
Community
5
Popularity
4
Documentation
13
repr_cast
Maintenance
7
Quality
13
Community
6
Popularity
2
Documentation
13
caret
Maintenance
20
Quality
17
Community
15
Popularity
7
Documentation
12
Technical Details
| enum_from_variant | repr_cast | caret | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.0 | 0.9.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 4 | 0 |
| Crate Size | 3KB | 24KB | 4KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | 1.89 |
| Owners | 1 | 1 | 4 |
Links
Quick Verdict
- •caret leads with a health score of 71/100, but none of the options score above 80.
- •caret is depended on by 273 crates — strongest ecosystem trust.
- •⚠ enum_from_variant has not been updated in over a year.