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