Decision Workspace
partial_struct vs partially vs borrow
Side-by-side comparison of Rust crates
48
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
partially
growingv0.2.1
Provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option
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.
Core Metrics
| partial_struct | partially | borrow | |
|---|---|---|---|
| Health Score | 48 | 51 | 49 |
| Total Downloads | 9.1K | 559.0K | 46.1K |
| 30d Downloads | 0 | 14.9K | 2.9K |
| Dependents | 35 | 492 | 2 |
| Releases | 10 | 4 | 9 |
| Last Updated | 165d ago | 905d ago | 279d ago |
| Age | 1y 5m | 2y 10m | 1y 8m |
Health Breakdown
partial_struct
Maintenance
12
Quality
14
Community
7
Popularity
5
Documentation
10
partially
Maintenance
5
Quality
17
Community
12
Popularity
7
Documentation
10
borrow
Maintenance
8
Quality
21
Community
4
Popularity
6
Documentation
10
Technical Details
| partial_struct | partially | borrow | |
|---|---|---|---|
| Version | 0.5.0 | 0.2.1 | 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 | 4 | 3 | 3 |
| Crate Size | 8KB | 5KB | 20KB |
| Features | 0 | 3 | 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.
- •⚠ partially has not been updated in over a year.
- •partial_struct, partially are pre-1.0 — API may change.