Decision Workspace
field_names_derive vs arraygen vs struct-to-enum
Side-by-side comparison of Rust crates
37
field_names_derive
experimentalv0.1.0
A simple procedural macro for Rust that generates field name constants for structs. Perfect for when you need compile-time field names for serialization, validation, database mapping, or configuration.
45
arraygen
growingv0.3.2
Derive macro for generating arrays from struct fields.
45
struct-to-enum
experimentalv1.1.2
Derive macros to generate enums from struct fields - compile-time safe field selection and dispatch
Core Metrics
| field_names_derive | arraygen | struct-to-enum | |
|---|---|---|---|
| Health Score | 37 | 45 | 45 |
| Total Downloads | 18 | 44.3K | 65 |
| 30d Downloads | 3 | 89 | 65 |
| Dependents | 0 | 1 | 0 |
| Releases | 1 | 23 | 5 |
| Last Updated | 71d ago | 1516d ago | 9d ago |
| Age | 2m | 6y 4m | 24d |
Health Breakdown
field_names_derive
Maintenance
9
Quality
13
Community
3
Popularity
2
Documentation
10
arraygen
Maintenance
6
Quality
14
Community
6
Popularity
6
Documentation
13
struct-to-enum
Maintenance
13
Quality
13
Community
5
Popularity
2
Documentation
12
Technical Details
| field_names_derive | arraygen | struct-to-enum | |
|---|---|---|---|
| Version | 0.1.0 | 0.3.2 | 1.1.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 4 | 4 | 1 |
| Crate Size | 6KB | 16KB | 5KB |
| Features | 0 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 20.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | 1.71.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •arraygen leads with a health score of 45/100, but none of the options score above 80.
- •⚠ arraygen has not been updated in over a year.
- •field_names_derive, arraygen are pre-1.0 — API may change.