Decision Workspace
alloc-tls vs state vs ps-thread-local-no-std
Side-by-side comparison of Rust crates
40
alloc-tls
growingv0.2.0
Thread-local storage that is safe for use in implementing global allocators.
52
state
growingv0.6.0
A library for safe and effortless global and thread-local state management.
42
ps-thread-local-no-std
experimentalv0.1.0
OS-backed thread-local storage, without std. A fork of os-thread-local 0.1.3 with no_std support: `core::error::Error` and `alloc::boxed::Box` in place of their std spellings, and nothing else. Provides a `ThreadLocal` type as an alternative to `std::thread_local!` that allows per-object thread-local storage with a similar API, always using the thread-local storage primitives provided by the OS.
Core Metrics
| alloc-tls | state | ps-thread-local-no-std | |
|---|---|---|---|
| Health Score | 40 | 52 | 42 |
| Total Downloads | 3.8K | 20.5M | 14 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 730 | 0 |
| Releases | 2 | 17 | 1 |
| Last Updated | 2380d ago | 1233d ago | 32d ago |
| Age | 8y 11m | 9y 9m | 1m |
Health Breakdown
alloc-tls
Maintenance
3
Quality
16
Community
6
Popularity
4
Documentation
11
state
Maintenance
4
Quality
16
Community
11
Popularity
8
Documentation
13
ps-thread-local-no-std
Maintenance
11
Quality
13
Community
6
Popularity
1
Documentation
11
Technical Details
| alloc-tls | state | ps-thread-local-no-std | |
|---|---|---|---|
| Version | 0.2.0 | 0.6.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0/MIT | MIT/Apache-2.0 | Apache-2.0 OR MIT |
| Dependencies | 1 | 2 | 4 |
| Crate Size | 7KB | 30KB | 17KB |
| Features | 1 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | — | 2021 | 2018 |
| MSRV | — | — | 1.81 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •state leads with a health score of 52/100, but none of the options score above 80.
- •state is depended on by 730 crates — strongest ecosystem trust.
- •⚠ alloc-tls, state have not been updated in over a year.