Decision Workspace
field_comparable_derive vs cmp vs struct-patch-derive
Side-by-side comparison of Rust crates
45
field_comparable_derive
experimentalv0.1.1
Procedural macro to generate struct field comparison methods / Macro procédurale pour générer des méthodes de comparaison de champs de structures
44
cmp
growingv1.0.0
Simple, convenience macros and function for comparing.
65
struct-patch-derive
growingv0.12.7
A library that helps you implement partial updates for your structs.
Core Metrics
| field_comparable_derive | cmp | struct-patch-derive | |
|---|---|---|---|
| Health Score | 45 | 44 | 65 |
| Total Downloads | 736 | 38.4K | 826.0K |
| 30d Downloads | 0 | 0 | 45.1K |
| Dependents | 0 | 0 | 47 |
| Releases | 2 | 3 | 47 |
| Last Updated | 325d ago | 368d ago | 1d ago |
| Age | 10m | 2y 1m | 3y 5m |
Health Breakdown
field_comparable_derive
Maintenance
7
Quality
14
Community
6
Popularity
3
Documentation
15
cmp
Maintenance
6
Quality
21
Community
5
Popularity
5
Documentation
7
struct-patch-derive
Maintenance
19
Quality
17
Community
10
Popularity
7
Documentation
12
Technical Details
| field_comparable_derive | cmp | struct-patch-derive | |
|---|---|---|---|
| Version | 0.1.1 | 1.0.0 | 0.12.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 3 | 2 | 5 |
| Crate Size | 9KB | 5KB | 19KB |
| Features | 0 | 2 | 6 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | 1.56 | — | 1.61.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-patch-derive leads with a health score of 65/100, but none of the options score above 80.
- •⚠ cmp has not been updated in over a year.
- •field_comparable_derive, struct-patch-derive are pre-1.0 — API may change.