Decision Workspace
struct_fragment vs partial_struct vs borrow
Side-by-side comparison of Rust crates
29
struct_fragment
growingv0.0.1
A macro to create a duplicate of a struct with keys removed.
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.
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.
Core Metrics
| struct_fragment | partial_struct | borrow | |
|---|---|---|---|
| Health Score | 29 | 52 | 51 |
| Total Downloads | 1.6K | 8.3K | 34.5K |
| 30d Downloads | 3 | 242 | 2.2K |
| Dependents | 0 | 35 | 2 |
| Releases | 1 | 10 | 9 |
| Last Updated | 1883d ago | 57d ago | 171d ago |
| Age | 5y 1m | 1y 1m | 1y 4m |
Health Breakdown
struct_fragment
Maintenance
1
Quality
15
Community
3
Popularity
4
Documentation
6
partial_struct
Maintenance
16
Quality
14
Community
7
Popularity
5
Documentation
10
borrow
Maintenance
11
Quality
21
Community
4
Popularity
5
Documentation
10
Technical Details
| struct_fragment | partial_struct | borrow | |
|---|---|---|---|
| Version | 0.0.1 | 0.5.0 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 4 | 3 |
| Crate Size | 3KB | 8KB | 20KB |
| Features | 0 | 0 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 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_fragment has not been updated in over a year.
- •struct_fragment, partial_struct are pre-1.0 — API may change.