Decision Workspace
partial_struct vs borrow vs partially
Side-by-side comparison of Rust crates
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.
48
partially
growingv0.2.1
Provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option
Core Metrics
| partial_struct | borrow | partially | |
|---|---|---|---|
| Health Score | 52 | 51 | 48 |
| Total Downloads | 8.3K | 34.5K | 443.5K |
| 30d Downloads | 242 | 2.2K | 45.0K |
| Dependents | 35 | 2 | 29 |
| Releases | 10 | 9 | 4 |
| Last Updated | 57d ago | 171d ago | 797d ago |
| Age | 1y 1m | 1y 4m | 2y 6m |
Health Breakdown
partial_struct
Maintenance
16
Quality
14
Community
7
Popularity
5
Documentation
10
borrow
Maintenance
11
Quality
21
Community
4
Popularity
5
Documentation
10
partially
Maintenance
5
Quality
17
Community
9
Popularity
7
Documentation
10
Technical Details
| partial_struct | borrow | partially | |
|---|---|---|---|
| Version | 0.5.0 | 2.0.0 | 0.2.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 3 | 3 |
| Crate Size | 8KB | 20KB | 5KB |
| Features | 0 | 3 | 3 |
| 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.
- •partially has the most downloads (443.5K), suggesting wider adoption.
- •⚠ partially has not been updated in over a year.
- •partial_struct, partially are pre-1.0 — API may change.