Decision Workspace
once-fn vs memoize vs const-struct-version-derive
Side-by-side comparison of Rust crates
42
once-fn
growingv0.2.1
cache the result of a function, make it runs only once
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
| once-fn | memoize | const-struct-version-derive | |
|---|---|---|---|
| Health Score | 42 | 58 | 45 |
| Total Downloads | 3.3K | 1.0M | 2.3K |
| 30d Downloads | 97 | 55.5K | 22 |
| Dependents | 2 | 115 | 2 |
| Releases | 3 | 22 | 3 |
| Last Updated | 221d ago | 81d ago | 383d ago |
| Age | 1y 5m | 5y 5m | 1y |
Health Breakdown
once-fn
Maintenance
8
Quality
14
Community
6
Popularity
4
Documentation
10
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
| once-fn | memoize | const-struct-version-derive | |
|---|---|---|---|
| Version | 0.2.1 | 0.6.0 | 0.1.3 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 5 | 5 | 3 |
| Crate Size | 8KB | 8KB | 4KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2018 | 2024 |
| MSRV | — | — | — |
| 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.
- •⚠ const-struct-version-derive has not been updated in over a year.