Decision Workspace
enum-derived vs struct-to-enum-macros vs variants-data-struct
Side-by-side comparison of Rust crates
45
enum-derived
growingv0.9.2
Generate random instances of your enums and structs
51
struct-to-enum-macros
experimentalv1.1.2
Derive macros for generating enums from structs.
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.
Core Metrics
| enum-derived | struct-to-enum-macros | variants-data-struct | |
|---|---|---|---|
| Health Score | 45 | 51 | 46 |
| Total Downloads | 104.7K | 69 | 622 |
| 30d Downloads | 5.4K | 69 | 19 |
| Dependents | 0 | 4 | 0 |
| Releases | 24 | 4 | 3 |
| Last Updated | 389d ago | 9d ago | 155d ago |
| Age | 3y 1m | 22d | 5m |
Health Breakdown
enum-derived
Maintenance
8
Quality
15
Community
3
Popularity
6
Documentation
13
struct-to-enum-macros
Maintenance
13
Quality
17
Community
7
Popularity
2
Documentation
12
variants-data-struct
Maintenance
12
Quality
13
Community
5
Popularity
3
Documentation
13
Technical Details
| enum-derived | struct-to-enum-macros | variants-data-struct | |
|---|---|---|---|
| Version | 0.9.2 | 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 | 3 | 7 | 4 |
| Crate Size | 10KB | 14KB | 11KB |
| Features | 0 | 3 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.71.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-to-enum-macros leads with a health score of 51/100, but none of the options score above 80.
- •enum-derived has the most downloads (104.7K), suggesting wider adoption.
- •⚠ enum-derived has not been updated in over a year.
- •enum-derived, variants-data-struct are pre-1.0 — API may change.