Decision Workspace
nest_struct vs variants-data-struct vs struct-to-enum
Side-by-side comparison of Rust crates
40
nest_struct
growingv0.5.5
Nest struct and enum definitions with minimal syntax changes
46
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.
45
struct-to-enum
experimentalv1.1.2
Derive macros to generate enums from struct fields - compile-time safe field selection and dispatch
Core Metrics
| nest_struct | variants-data-struct | struct-to-enum | |
|---|---|---|---|
| Health Score | 40 | 46 | 45 |
| Total Downloads | 50.3K | 622 | 65 |
| 30d Downloads | 4.9K | 19 | 65 |
| Dependents | 4 | 0 | 0 |
| Releases | 17 | 3 | 5 |
| Last Updated | 288d ago | 155d ago | 9d ago |
| Age | 1y 4m | 5m | 24d |
Health Breakdown
nest_struct
Maintenance
9
Quality
7
Community
8
Popularity
6
Documentation
10
variants-data-struct
Maintenance
12
Quality
13
Community
5
Popularity
3
Documentation
13
struct-to-enum
Maintenance
13
Quality
13
Community
5
Popularity
2
Documentation
12
Technical Details
| nest_struct | variants-data-struct | struct-to-enum | |
|---|---|---|---|
| Version | 0.5.5 | 0.3.0 | 1.1.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 9 | 4 | 1 |
| Crate Size | 26KB | 11KB | 5KB |
| Features | 0 | 0 | 4 |
| Yanked % | 76.5% | 0.0% | 20.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | — | 1.71.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •variants-data-struct leads with a health score of 46/100, but none of the options score above 80.
- •nest_struct has the most downloads (50.3K), suggesting wider adoption.
- •nest_struct, variants-data-struct are pre-1.0 — API may change.