Decision Workspace
stack-trait vs smallvec vs stackvector
Side-by-side comparison of Rust crates
46
stack-trait
growingv0.3.0
Stack trait with entry API for the LIFO element.
73
smallvec
stablev1.16.2
'Small vector' optimization: store up to a small number of items on the stack
58
stackvector
growingv2.0.0
StackVec: vector-like facade for stack-allocated arrays.
Core Metrics
| stack-trait | smallvec | stackvector | |
|---|---|---|---|
| Health Score | 46 | 73 | 58 |
| Total Downloads | 4.5K | 1.3B | 431.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 7 | 78.3K | 18 |
| Releases | 3 | 83 | 14 |
| Last Updated | 1086d ago | 7d ago | 100d ago |
| Age | 2y 12m | 11y 6m | 7y 10m |
Health Breakdown
stack-trait
Maintenance
5
Quality
16
Community
8
Popularity
4
Documentation
13
smallvec
Maintenance
20
Quality
17
Community
19
Popularity
8
Documentation
9
stackvector
Maintenance
11
Quality
17
Community
8
Popularity
7
Documentation
15
Technical Details
| stack-trait | smallvec | stackvector | |
|---|---|---|---|
| Version | 0.3.0 | 1.16.2 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT/Apache-2.0 |
| Dependencies | 0 | 6 | 0 |
| Crate Size | 4KB | 35KB | 18KB |
| Features | 0 | 9 | 3 |
| Yanked % | 0.0% | 24.1% | 64.3% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | — | — | 1.60.0 |
| Owners | 1 | 3 (team) | 1 |
Links
Quick Verdict
- •smallvec leads with a health score of 73/100, but none of the options score above 80.
- •smallvec is depended on by 78.3K crates — strongest ecosystem trust.
- •⚠ stack-trait has not been updated in over a year.
- •stack-trait is pre-1.0 — API may change.