Decision Workspace
regex-cache vs lazy-regex vs once-cell-regex
Side-by-side comparison of Rust crates
46
regex-cache
growingv0.2.1
Lazy and cached regular expressions.
71
lazy-regex
stablev3.6.0
lazy static regular expressions checked at compile time
49
once-cell-regex
growingv0.2.1
This crate just gives you the `regex` macro from the `once_cell` docs!
Core Metrics
| regex-cache | lazy-regex | once-cell-regex | |
|---|---|---|---|
| Health Score | 46 | 71 | 49 |
| Total Downloads | 7.5M | 28.1M | 632.4K |
| 30d Downloads | 631.6K | 2.5M | 79.5K |
| Dependents | 29 | 4.3K | 85 |
| Releases | 8 | 32 | 4 |
| Last Updated | 1988d ago | 44d ago | 1933d ago |
| Age | 8y 8m | 6y 5m | 6y 4m |
Health Breakdown
regex-cache
Maintenance
3
Quality
14
Community
12
Popularity
8
Documentation
9
lazy-regex
Maintenance
15
Quality
22
Community
14
Popularity
8
Documentation
12
once-cell-regex
Maintenance
4
Quality
18
Community
8
Popularity
7
Documentation
12
Technical Details
| regex-cache | lazy-regex | once-cell-regex | |
|---|---|---|---|
| Version | 0.2.1 | 3.6.0 | 0.2.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0/MIT |
| Dependencies | 4 | 4 | 2 |
| Crate Size | 6KB | 11KB | 7KB |
| Features | 0 | 16 | 5 |
| Yanked % | 0.0% | 3.1% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | 1.71 | — |
| Owners | 2 (team) | 1 | 1 |
Links
Quick Verdict
- •lazy-regex leads with a health score of 71/100, but none of the options score above 80.
- •lazy-regex is depended on by 4.3K crates — strongest ecosystem trust.
- •⚠ regex-cache, once-cell-regex have not been updated in over a year.
- •regex-cache, once-cell-regex are pre-1.0 — API may change.