Decision Workspace
ref_thread_local vs lazy-regex vs lazy_static
Side-by-side comparison of Rust crates
49
ref_thread_local
growingv0.1.1
A macro for declaring thread-local `static`s like using both of `lazy_static!` and `RefCell`
69
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
| ref_thread_local | lazy-regex | lazy_static | |
|---|---|---|---|
| Health Score | 49 | 69 | 66 |
| Total Downloads | 340.3K | 32.2M | 754.6M |
| 30d Downloads | 9.7K | 2.2M | 53.0M |
| Dependents | 227 | 4.5K | 173.5K |
| Releases | 3 | 32 | 38 |
| Last Updated | 1651d ago | 103d ago | 703d ago |
| Age | 7y 7m | 6y 7m | 11y 6m |
Health Breakdown
ref_thread_local
Maintenance
3
Quality
16
Community
12
Popularity
7
Documentation
11
lazy-regex
Maintenance
13
Quality
22
Community
14
Popularity
8
Documentation
12
lazy_static
Maintenance
6
Quality
21
Community
20
Popularity
8
Documentation
11
Technical Details
| ref_thread_local | lazy-regex | lazy_static | |
|---|---|---|---|
| Version | 0.1.1 | 3.6.0 | 1.5.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 4 | 3 |
| Crate Size | 8KB | 11KB | 14KB |
| Features | 0 | 16 | 1 |
| Yanked % | 0.0% | 3.1% | 0.0% |
| Edition | — | 2021 | — |
| MSRV | — | 1.71 | — |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •lazy-regex leads with a health score of 69/100, but none of the options score above 80.
- •lazy_static has the most downloads (754.6M), suggesting wider adoption.
- •lazy_static is depended on by 173.5K crates — strongest ecosystem trust.
- •⚠ ref_thread_local, lazy_static have not been updated in over a year.
- •ref_thread_local is pre-1.0 — API may change.