Decision Workspace
struct-split vs borrow vs struct-to-enum-macros
Side-by-side comparison of Rust crates
37
struct-split
growingv0.1.3
Crate renamed to 'borrow', use it instead.
48
borrow
growingv2.0.0
Zero-overhead, safe implementation of partial borrows. This crate allows you to borrow selected fields from a struct and split structs into non-overlapping sets of borrowed fields.
53
struct-to-enum-macros
growingv1.1.2
Derive macros for generating enums from structs.
Core Metrics
| struct-split | borrow | struct-to-enum-macros | |
|---|---|---|---|
| Health Score | 37 | 48 | 53 |
| Total Downloads | 2.6K | 56.0K | 3.5K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2 | 4 |
| Releases | 3 | 9 | 4 |
| Last Updated | 697d ago | 367d ago | 205d ago |
| Age | 1y 11m | 1y 11m | 7m |
Health Breakdown
struct-split
Maintenance
5
Quality
15
Community
3
Popularity
4
Documentation
10
borrow
Maintenance
7
Quality
21
Community
4
Popularity
6
Documentation
10
struct-to-enum-macros
Maintenance
11
Quality
19
Community
7
Popularity
4
Documentation
12
Technical Details
| struct-split | borrow | struct-to-enum-macros | |
|---|---|---|---|
| Version | 0.1.3 | 2.0.0 | 1.1.2 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 7 |
| Crate Size | 3KB | 20KB | 14KB |
| Features | 0 | 3 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | 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.
- •borrow has the most downloads (56.0K), suggesting wider adoption.
- •⚠ struct-split, borrow have not been updated in over a year.
- •struct-split is pre-1.0 — API may change.