Decision Workspace
variants-data-struct vs struct-to-enum vs struct-patch-derive
Side-by-side comparison of Rust crates
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
63
struct-patch-derive
growingv0.10.5
A library that helps you implement partial updates for your structs.
Core Metrics
| variants-data-struct | struct-to-enum | struct-patch-derive | |
|---|---|---|---|
| Health Score | 46 | 45 | 63 |
| Total Downloads | 622 | 65 | 578.7K |
| 30d Downloads | 19 | 65 | 43.6K |
| Dependents | 0 | 0 | 38 |
| Releases | 3 | 5 | 38 |
| Last Updated | 155d ago | 9d ago | 2d ago |
| Age | 5m | 24d | 3y 2m |
Health Breakdown
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
struct-patch-derive
Maintenance
19
Quality
16
Community
9
Popularity
7
Documentation
12
Technical Details
| variants-data-struct | struct-to-enum | struct-patch-derive | |
|---|---|---|---|
| Version | 0.3.0 | 1.1.2 | 0.10.5 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 1 | 4 |
| Crate Size | 11KB | 5KB | 12KB |
| Features | 0 | 4 | 4 |
| Yanked % | 0.0% | 20.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.71.0 | 1.61.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-patch-derive leads with a health score of 63/100, but none of the options score above 80.
- •variants-data-struct, struct-patch-derive are pre-1.0 — API may change.