Decision Workspace
thread_local vs lazy_thread_local vs dropping-thread-local
Side-by-side comparison of Rust crates
59
thread_local
growingv1.1.9
Per-object thread-local storage
37
lazy_thread_local
growingv0.1.2
Lazily initialised per-object thread-local storage
50
dropping-thread-local
experimentalv0.1.5
A dynamically allocated ThreadLocal that ensures destructors are run on thread exit
Core Metrics
| thread_local | lazy_thread_local | dropping-thread-local | |
|---|---|---|---|
| Health Score | 59 | 37 | 50 |
| Total Downloads | 432.2M | 4.7K | 2.2K |
| 30d Downloads | 31.3M | 18 | 9 |
| Dependents | 2.8K | 0 | 0 |
| Releases | 28 | 3 | 7 |
| Last Updated | 288d ago | 746d ago | 73d ago |
| Age | 9y 11m | 2y 4m | 8m |
Health Breakdown
thread_local
Maintenance
6
Quality
18
Community
12
Popularity
8
Documentation
15
lazy_thread_local
Maintenance
5
Quality
9
Community
6
Popularity
4
Documentation
13
dropping-thread-local
Maintenance
15
Quality
13
Community
6
Popularity
4
Documentation
12
Technical Details
| thread_local | lazy_thread_local | dropping-thread-local | |
|---|---|---|---|
| Version | 1.1.9 | 0.1.2 | 0.1.5 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | Apache-2.0 OR MIT |
| Dependencies | 2 | 3 | 8 |
| Crate Size | 19KB | 5KB | 22KB |
| Features | 1 | 0 | 1 |
| Yanked % | 7.1% | 33.3% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.63 | — | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •thread_local leads with a health score of 59/100, but none of the options score above 80.
- •thread_local is depended on by 2.8K crates — strongest ecosystem trust.
- •⚠ lazy_thread_local has not been updated in over a year.
- •lazy_thread_local, dropping-thread-local are pre-1.0 — API may change.