Decision Workspace
borrow vs struct-split vs partially
Side-by-side comparison of Rust crates
49
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.
37
struct-split
growingv0.1.3
Crate renamed to 'borrow', use it instead.
51
partially
growingv0.2.1
Provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option
Core Metrics
| borrow | struct-split | partially | |
|---|---|---|---|
| Health Score | 49 | 37 | 51 |
| Total Downloads | 46.1K | 2.5K | 559.0K |
| 30d Downloads | 2.9K | 0 | 14.9K |
| Dependents | 2 | 0 | 492 |
| Releases | 9 | 3 | 4 |
| Last Updated | 279d ago | 609d ago | 905d ago |
| Age | 1y 8m | 1y 8m | 2y 10m |
Health Breakdown
borrow
Maintenance
8
Quality
21
Community
4
Popularity
6
Documentation
10
struct-split
Maintenance
5
Quality
15
Community
3
Popularity
4
Documentation
10
partially
Maintenance
5
Quality
17
Community
12
Popularity
7
Documentation
10
Technical Details
| borrow | struct-split | partially | |
|---|---|---|---|
| Version | 2.0.0 | 0.1.3 | 0.2.1 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 1 | 3 |
| Crate Size | 20KB | 3KB | 5KB |
| Features | 3 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •partially leads with a health score of 51/100, but none of the options score above 80.
- •partially is depended on by 492 crates — strongest ecosystem trust.
- •⚠ struct-split, partially have not been updated in over a year.
- •struct-split, partially are pre-1.0 — API may change.