Decision Workspace
enum-derived vs struct-to-enum-macros vs struct-to-enum
Side-by-side comparison of Rust crates
44
enum-derived
growingv0.9.2
Generate random instances of your enums and structs
53
struct-to-enum-macros
growingv1.1.2
Derive macros for generating enums from structs.
47
struct-to-enum
growingv1.1.2
Derive macros to generate enums from struct fields - compile-time safe field selection and dispatch
Core Metrics
| enum-derived | struct-to-enum-macros | struct-to-enum | |
|---|---|---|---|
| Health Score | 44 | 53 | 47 |
| Total Downloads | 152.2K | 3.5K | 3.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 4 | 0 |
| Releases | 24 | 4 | 5 |
| Last Updated | 585d ago | 205d ago | 205d ago |
| Age | 3y 8m | 7m | 7m |
Health Breakdown
enum-derived
Maintenance
7
Quality
15
Community
3
Popularity
6
Documentation
13
struct-to-enum-macros
Maintenance
11
Quality
19
Community
7
Popularity
4
Documentation
12
struct-to-enum
Maintenance
11
Quality
15
Community
5
Popularity
4
Documentation
12
Technical Details
| enum-derived | struct-to-enum-macros | struct-to-enum | |
|---|---|---|---|
| Version | 0.9.2 | 1.1.2 | 1.1.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 7 | 1 |
| Crate Size | 10KB | 14KB | 5KB |
| Features | 0 | 3 | 4 |
| Yanked % | 0.0% | 0.0% | 20.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.71.0 | 1.71.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-to-enum-macros leads with a health score of 53/100, but none of the options score above 80.
- •enum-derived has the most downloads (152.2K), suggesting wider adoption.
- •⚠ enum-derived has not been updated in over a year.
- •enum-derived is pre-1.0 — API may change.