Decision Workspace
static-box vs arrayvec vs smallbox
Side-by-side comparison of Rust crates
45
static-box
growingv0.2.0
A stack-allocated box that stores trait objects.
64
arrayvec
growingv0.7.6
A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString.
51
smallbox
growingv0.8.8
`Small Box` optimization: store small item on stack and fallback to heap for large item.
Core Metrics
| static-box | arrayvec | smallbox | |
|---|---|---|---|
| Health Score | 45 | 64 | 51 |
| Total Downloads | 6.5K | 362.1M | 978.7K |
| 30d Downloads | 12 | 22.3M | 72.6K |
| Dependents | 0 | 16.0K | 129 |
| Releases | 4 | 55 | 26 |
| Last Updated | 1724d ago | 587d ago | 268d ago |
| Age | 4y 10m | 10y 10m | 8y 10m |
Health Breakdown
static-box
Maintenance
6
Quality
16
Community
6
Popularity
5
Documentation
12
arrayvec
Maintenance
6
Quality
16
Community
20
Popularity
8
Documentation
14
smallbox
Maintenance
7
Quality
11
Community
11
Popularity
7
Documentation
15
Technical Details
| static-box | arrayvec | smallbox | |
|---|---|---|---|
| Version | 0.2.0 | 0.7.6 | 0.8.8 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 0 | 6 | 2 |
| Crate Size | 10KB | 31KB | 16KB |
| Features | 0 | 2 | 4 |
| Yanked % | 0.0% | 0.0% | 34.6% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | 1.51 | 1.80 |
| Owners | 1 | 2 (team) | 1 |
Links
Quick Verdict
- •arrayvec leads with a health score of 64/100, but none of the options score above 80.
- •arrayvec is depended on by 16.0K crates — strongest ecosystem trust.
- •⚠ static-box, arrayvec have not been updated in over a year.