Decision Workspace
variants-data-struct vs struct-to-enum vs struct-patch-derive
Side-by-side comparison of Rust crates
44
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.
43
struct-to-enum
experimentalv1.1.2
Derive macros to generate enums from struct fields - compile-time safe field selection and dispatch
64
struct-patch-derive
growingv0.12.1
A library that helps you implement partial updates for your structs.
Core Metrics
| variants-data-struct | struct-to-enum | struct-patch-derive | |
|---|---|---|---|
| Health Score | 44 | 43 | 64 |
| Total Downloads | 652 | 94 | 706.6K |
| 30d Downloads | 0 | 0 | 75.6K |
| Dependents | 0 | 0 | 41 |
| Releases | 3 | 5 | 41 |
| Last Updated | 214d ago | 68d ago | today |
| Age | 7m | 2m | 3y 4m |
Health Breakdown
variants-data-struct
Maintenance
10
Quality
13
Community
5
Popularity
3
Documentation
13
struct-to-enum
Maintenance
10
Quality
14
Community
5
Popularity
2
Documentation
12
struct-patch-derive
Maintenance
19
Quality
17
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.12.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 1 | 5 |
| Crate Size | 11KB | 5KB | 15KB |
| Features | 0 | 4 | 5 |
| 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 64/100, but none of the options score above 80.
- •variants-data-struct, struct-patch-derive are pre-1.0 — API may change.