Decision Workspace
struct_cache_field vs memoize vs const-struct-version-derive
Side-by-side comparison of Rust crates
42
struct_cache_field
growingv0.0.2
Proc macro for caching method to struct field
58
memoize
growingv0.6.0
Attribute macro for auto-memoizing functions with somewhat-simple signatures
45
const-struct-version-derive
growingv0.1.3
A proc-macro to generate a hash based on the fields of a struct. Useful for intelligently expiring a cache when the stored object changes.
Core Metrics
| struct_cache_field | memoize | const-struct-version-derive | |
|---|---|---|---|
| Health Score | 42 | 58 | 45 |
| Total Downloads | 2.2K | 1.0M | 2.3K |
| 30d Downloads | 4 | 58.2K | 23 |
| Dependents | 0 | 115 | 2 |
| Releases | 2 | 22 | 3 |
| Last Updated | 585d ago | 81d ago | 383d ago |
| Age | 1y 7m | 5y 5m | 1y |
Health Breakdown
struct_cache_field
Maintenance
5
Quality
14
Community
4
Popularity
4
Documentation
15
memoize
Maintenance
14
Quality
16
Community
9
Popularity
7
Documentation
12
const-struct-version-derive
Maintenance
6
Quality
15
Community
7
Popularity
4
Documentation
13
Technical Details
| struct_cache_field | memoize | const-struct-version-derive | |
|---|---|---|---|
| Version | 0.0.2 | 0.6.0 | 0.1.3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 7 | 5 | 3 |
| Crate Size | 11KB | 8KB | 4KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2024 |
| MSRV | 1.80.0 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •memoize leads with a health score of 58/100, but none of the options score above 80.
- •memoize is depended on by 115 crates — strongest ecosystem trust.
- •⚠ struct_cache_field, const-struct-version-derive have not been updated in over a year.