Decision Workspace
cmp vs field_comparable_derive vs struct-patch-derive
Side-by-side comparison of Rust crates
45
cmp
growingv1.0.0
Simple, convenience macros and function for comparing.
46
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
63
struct-patch-derive
growingv0.10.5
A library that helps you implement partial updates for your structs.
Core Metrics
| cmp | field_comparable_derive | struct-patch-derive | |
|---|---|---|---|
| Health Score | 45 | 46 | 63 |
| Total Downloads | 37.6K | 699 | 578.7K |
| 30d Downloads | 212 | 4 | 45.0K |
| Dependents | 0 | 0 | 38 |
| Releases | 3 | 2 | 38 |
| Last Updated | 260d ago | 217d ago | 2d ago |
| Age | 1y 9m | 7m | 3y 2m |
Health Breakdown
cmp
Maintenance
8
Quality
20
Community
5
Popularity
5
Documentation
7
field_comparable_derive
Maintenance
8
Quality
14
Community
6
Popularity
3
Documentation
15
struct-patch-derive
Maintenance
19
Quality
16
Community
9
Popularity
7
Documentation
12
Technical Details
| cmp | field_comparable_derive | struct-patch-derive | |
|---|---|---|---|
| Version | 1.0.0 | 0.1.1 | 0.10.5 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 2 | 3 | 4 |
| Crate Size | 5KB | 9KB | 12KB |
| Features | 2 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | 1.56 | 1.61.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •struct-patch-derive leads with a health score of 63/100, but none of the options score above 80.
- •field_comparable_derive, struct-patch-derive are pre-1.0 — API may change.