Decision Workspace
field_names_derive vs struct-to-enum vs arraygen
Side-by-side comparison of Rust crates
32
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.
47
struct-to-enum
growingv1.1.2
Derive macros to generate enums from struct fields - compile-time safe field selection and dispatch
45
arraygen
growingv0.3.2
Derive macro for generating arrays from struct fields.
Core Metrics
| field_names_derive | struct-to-enum | arraygen | |
|---|---|---|---|
| Health Score | 32 | 47 | 45 |
| Total Downloads | 30 | 3.1K | 44.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 1 |
| Releases | 1 | 5 | 23 |
| Last Updated | 267d ago | 205d ago | 1712d ago |
| Age | 8m | 7m | 6y 10m |
Health Breakdown
field_names_derive
Maintenance
4
Quality
13
Community
3
Popularity
2
Documentation
10
struct-to-enum
Maintenance
11
Quality
15
Community
5
Popularity
4
Documentation
12
arraygen
Maintenance
6
Quality
14
Community
6
Popularity
6
Documentation
13
Technical Details
| field_names_derive | struct-to-enum | arraygen | |
|---|---|---|---|
| Version | 0.1.0 | 1.1.2 | 0.3.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 1 | 4 |
| Crate Size | 6KB | 5KB | 16KB |
| Features | 0 | 4 | 0 |
| Yanked % | 0.0% | 20.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.71.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-to-enum leads with a health score of 47/100, but none of the options score above 80.
- •arraygen has the most downloads (44.8K), suggesting wider adoption.
- •⚠ arraygen has not been updated in over a year.
- •field_names_derive, arraygen are pre-1.0 — API may change.