Decision Workspace
borrow vs struct-split vs partial_struct
Side-by-side comparison of Rust crates
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.
38
struct-split
growingv0.1.3
Crate renamed to 'borrow', use it instead.
52
partial_struct
growingv0.5.0
A proc-macro crate that generates partial versions of Rust structs. Specify omitted fields and custom derives via attributes, then use the generated conversion method to build the full struct.
Core Metrics
| borrow | struct-split | partial_struct | |
|---|---|---|---|
| Health Score | 51 | 38 | 52 |
| Total Downloads | 34.5K | 2.5K | 8.3K |
| 30d Downloads | 2.2K | 5 | 242 |
| Dependents | 2 | 0 | 35 |
| Releases | 9 | 3 | 10 |
| Last Updated | 171d ago | 501d ago | 57d ago |
| Age | 1y 4m | 1y 4m | 1y 1m |
Health Breakdown
borrow
Maintenance
11
Quality
21
Community
4
Popularity
5
Documentation
10
struct-split
Maintenance
6
Quality
15
Community
3
Popularity
4
Documentation
10
partial_struct
Maintenance
16
Quality
14
Community
7
Popularity
5
Documentation
10
Technical Details
| borrow | struct-split | partial_struct | |
|---|---|---|---|
| Version | 2.0.0 | 0.1.3 | 0.5.0 |
| 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 | 4 |
| Crate Size | 20KB | 3KB | 8KB |
| Features | 3 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •partial_struct leads with a health score of 52/100, but none of the options score above 80.
- •borrow has the most downloads (34.5K), suggesting wider adoption.
- •⚠ struct-split has not been updated in over a year.
- •struct-split, partial_struct are pre-1.0 — API may change.