Decision Workspace
once_cell vs lazy-regex vs lazy_static
Side-by-side comparison of Rust crates
68
once_cell
growingv1.21.4
Single assignment cells and lazy values.
74
lazy-regex
stablev3.6.2
lazy static regular expressions checked at compile time
72
lazy_static
stablev1.5.1
A macro for declaring lazily evaluated statics in Rust.
Core Metrics
| once_cell | lazy-regex | lazy_static | |
|---|---|---|---|
| Health Score | 68 | 74 | 72 |
| Total Downloads | 1.3B | 44.5M | 1.0B |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 197.6K | 5.0K | 183.7K |
| Releases | 67 | 34 | 39 |
| Last Updated | 211d ago | 7d ago | 9d ago |
| Age | 8y 2m | 7y | 11y 10m |
Health Breakdown
once_cell
Maintenance
11
Quality
18
Community
16
Popularity
8
Documentation
15
lazy-regex
Maintenance
18
Quality
22
Community
14
Popularity
8
Documentation
12
lazy_static
Maintenance
17
Quality
21
Community
15
Popularity
8
Documentation
11
Technical Details
| once_cell | lazy-regex | lazy_static | |
|---|---|---|---|
| Version | 1.21.4 | 3.6.2 | 1.5.1 |
| 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 | 12KB | 14KB |
| Features | 9 | 16 | 1 |
| Yanked % | 11.9% | 2.9% | 0.0% |
| Edition | 2021 | 2021 | — |
| MSRV | 1.65 | 1.71 | — |
| Owners | 2 | 1 | 1 |
Links
Quick Verdict
- •lazy-regex leads with a health score of 74/100, but none of the options score above 80.
- •once_cell has the most downloads (1.3B), suggesting wider adoption.
- •once_cell is depended on by 197.6K crates — strongest ecosystem trust.