Decision Workspace
either_field vs struct-split vs nestruct
Side-by-side comparison of Rust crates
47
either_field
stablev1.2.3
Macro for generating different types off of a template struct
38
struct-split
growingv0.1.3
Crate renamed to 'borrow', use it instead.
32
nestruct
growingv0.1.0
A Rust library that provides macros to easily flatten or nest structs and enums in your code.
Core Metrics
| either_field | struct-split | nestruct | |
|---|---|---|---|
| Health Score | 47 | 38 | 32 |
| Total Downloads | 2.3K | 2.5K | 4.9K |
| 30d Downloads | 21 | 5 | 155 |
| Dependents | 0 | 0 | 0 |
| Releases | 6 | 3 | 1 |
| Last Updated | 66d ago | 501d ago | 1104d ago |
| Age | 1y | 1y 4m | 3y |
Health Breakdown
either_field
Maintenance
14
Quality
13
Community
6
Popularity
4
Documentation
10
struct-split
Maintenance
6
Quality
15
Community
3
Popularity
4
Documentation
10
nestruct
Maintenance
1
Quality
14
Community
3
Popularity
4
Documentation
10
Technical Details
| either_field | struct-split | nestruct | |
|---|---|---|---|
| Version | 1.2.3 | 0.1.3 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | GPL-3.0-only | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 1 | 7 |
| Crate Size | 8KB | 3KB | 6KB |
| Features | 0 | 0 | 0 |
| Yanked % | 33.3% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •either_field leads with a health score of 47/100, but none of the options score above 80.
- •nestruct has the most downloads (4.9K), suggesting wider adoption.
- •⚠ struct-split, nestruct have not been updated in over a year.
- •struct-split, nestruct are pre-1.0 — API may change.