Decision Workspace
once_cell vs lazy-regex vs lazy_static
Side-by-side comparison of Rust crates
75
once_cell
stablev1.21.4
Single assignment cells and lazy values.
71
lazy-regex
stablev3.6.0
lazy static regular expressions checked at compile time
66
lazy_static
growingv1.5.0
A macro for declaring lazily evaluated statics in Rust.
Core Metrics
| once_cell | lazy-regex | lazy_static | |
|---|---|---|---|
| Health Score | 75 | 71 | 66 |
| Total Downloads | 782.7M | 28.1M | 660.2M |
| 30d Downloads | 52.5M | 2.5M | 40.8M |
| Dependents | 162.5K | 4.3K | 168.7K |
| Releases | 67 | 32 | 38 |
| Last Updated | 15d ago | 44d ago | 644d ago |
| Age | 7y 8m | 6y 5m | 11y 4m |
Health Breakdown
once_cell
Maintenance
18
Quality
18
Community
16
Popularity
8
Documentation
15
lazy-regex
Maintenance
15
Quality
22
Community
14
Popularity
8
Documentation
12
lazy_static
Maintenance
6
Quality
21
Community
20
Popularity
8
Documentation
11
Technical Details
| once_cell | lazy-regex | lazy_static | |
|---|---|---|---|
| Version | 1.21.4 | 3.6.0 | 1.5.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT | MIT OR Apache-2.0 |
| Dependencies | 5 | 4 | 3 |
| Crate Size | 35KB | 11KB | 14KB |
| Features | 9 | 16 | 1 |
| Yanked % | 11.9% | 3.1% | 0.0% |
| Edition | 2021 | 2021 | — |
| MSRV | 1.65 | 1.71 | — |
| Owners | 2 | 1 | 2 (team) |
Links
Quick Verdict
- •once_cell leads with a health score of 75/100, but none of the options score above 80.
- •lazy_static is depended on by 168.7K crates — strongest ecosystem trust.
- •⚠ lazy_static has not been updated in over a year.