Decision Workspace
variants-data-struct vs struct-to-enum vs enum_traits_macros
Side-by-side comparison of Rust crates
43
variants-data-struct
experimentalv0.3.0
A derive macro to convert enums into a struct where the variants are members and types are that that of variants data.
47
struct-to-enum
growingv1.1.2
Derive macros to generate enums from struct fields - compile-time safe field selection and dispatch
66
enum_traits_macros
stablev6.1.0
Procedural macros adding functionality to enums. Derives traits from the crate `enum_traits`
Core Metrics
| variants-data-struct | struct-to-enum | enum_traits_macros | |
|---|---|---|---|
| Health Score | 43 | 47 | 66 |
| Total Downloads | 728 | 3.1K | 16.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 7 |
| Releases | 3 | 5 | 12 |
| Last Updated | 351d ago | 205d ago | 3d ago |
| Age | 11m | 7m | 11y 1m |
Health Breakdown
variants-data-struct
Maintenance
9
Quality
13
Community
5
Popularity
3
Documentation
13
struct-to-enum
Maintenance
11
Quality
15
Community
5
Popularity
4
Documentation
12
enum_traits_macros
Maintenance
16
Quality
24
Community
8
Popularity
5
Documentation
13
Technical Details
| variants-data-struct | struct-to-enum | enum_traits_macros | |
|---|---|---|---|
| Version | 0.3.0 | 1.1.2 | 6.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 1 | 3 |
| Crate Size | 11KB | 5KB | 29KB |
| Features | 0 | 4 | 54 |
| Yanked % | 0.0% | 20.0% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | — | 1.71.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •enum_traits_macros leads with a health score of 66/100, but none of the options score above 80.
- •variants-data-struct is pre-1.0 — API may change.