Decision Workspace
once-cell-regex vs lazy-regex vs lazy_static
Side-by-side comparison of Rust crates
49
once-cell-regex
growingv0.2.1
This crate just gives you the `regex` macro from the `once_cell` docs!
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-regex | lazy-regex | lazy_static | |
|---|---|---|---|
| Health Score | 49 | 74 | 72 |
| Total Downloads | 791.0K | 44.5M | 1.0B |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 86 | 5.0K | 183.7K |
| Releases | 4 | 34 | 39 |
| Last Updated | 2129d ago | 7d ago | 9d ago |
| Age | 6y 10m | 7y | 11y 10m |
Health Breakdown
once-cell-regex
Maintenance
4
Quality
18
Community
8
Popularity
7
Documentation
12
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-regex | lazy-regex | lazy_static | |
|---|---|---|---|
| Version | 0.2.1 | 3.6.2 | 1.5.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | Apache-2.0/MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 2 | 4 | 3 |
| Crate Size | 7KB | 12KB | 14KB |
| Features | 5 | 16 | 1 |
| Yanked % | 0.0% | 2.9% | 0.0% |
| Edition | 2018 | 2021 | — |
| MSRV | — | 1.71 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •lazy-regex leads with a health score of 74/100, but none of the options score above 80.
- •lazy_static has the most downloads (1.0B), suggesting wider adoption.
- •lazy_static is depended on by 183.7K crates — strongest ecosystem trust.
- •⚠ once-cell-regex has not been updated in over a year.
- •once-cell-regex is pre-1.0 — API may change.