Decision Workspace
struct-split vs borrow vs struct-to-enum-macros
Side-by-side comparison of Rust crates
38
struct-split
growingv0.1.3
Crate renamed to 'borrow', use it instead.
51
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.
51
struct-to-enum-macros
experimentalv1.1.2
Derive macros for generating enums from structs.
Core Metrics
| struct-split | borrow | struct-to-enum-macros | |
|---|---|---|---|
| Health Score | 38 | 51 | 51 |
| Total Downloads | 2.5K | 34.5K | 69 |
| 30d Downloads | 5 | 2.2K | 69 |
| Dependents | 0 | 2 | 4 |
| Releases | 3 | 9 | 4 |
| Last Updated | 501d ago | 171d ago | 9d ago |
| Age | 1y 4m | 1y 4m | 22d |
Health Breakdown
struct-split
Maintenance
6
Quality
15
Community
3
Popularity
4
Documentation
10
borrow
Maintenance
11
Quality
21
Community
4
Popularity
5
Documentation
10
struct-to-enum-macros
Maintenance
13
Quality
17
Community
7
Popularity
2
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
- •borrow leads with a health score of 51/100, but none of the options score above 80.
- •⚠ struct-split has not been updated in over a year.
- •struct-split is pre-1.0 — API may change.