Decision Workspace
alloc-tls vs state vs thread-object
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.
39
thread-object
growingv0.2.0
Abstraction over thread-local storage allowing dynamic creation of TLS variables.
Core Metrics
| alloc-tls | state | thread-object | |
|---|---|---|---|
| Health Score | 40 | 52 | 39 |
| Total Downloads | 3.8K | 15.7M | 3.8K |
| 30d Downloads | 5 | 498.5K | 5 |
| Dependents | 0 | 708 | 0 |
| Releases | 2 | 17 | 2 |
| Last Updated | 2184d ago | 1037d ago | 3337d ago |
| Age | 8y 4m | 9y 2m | 9y 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
thread-object
Maintenance
3
Quality
16
Community
5
Popularity
4
Documentation
11
Technical Details
| alloc-tls | state | thread-object | |
|---|---|---|---|
| Version | 0.2.0 | 0.6.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0/MIT | MIT/Apache-2.0 | MIT |
| Dependencies | 1 | 2 | 0 |
| Crate Size | 7KB | 30KB | 2KB |
| Features | 1 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | — | 2021 | — |
| MSRV | — | — | — |
| Owners | 1 | 1 | 2 |
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 708 crates — strongest ecosystem trust.
- •⚠ alloc-tls, state, thread-object have not been updated in over a year.