Decision Workspace
local-or-heap vs memory-layout vs struct_layout
Side-by-side comparison of Rust crates
40
local-or-heap
growingv0.1.0
provides a type with a pre-specified size, regardless of the size of the T type it contains, using heap allocation if necessary
46
memory-layout
growingv0.3.0
explicit struct layouts.
36
struct_layout
growingv0.1.0
Customize your struct layout with this one weird trick.
Core Metrics
| local-or-heap | memory-layout | struct_layout | |
|---|---|---|---|
| Health Score | 40 | 46 | 36 |
| Total Downloads | 16.9K | 4.0K | 2.3K |
| 30d Downloads | 1.0K | 10 | 9 |
| Dependents | 4 | 0 | 0 |
| Releases | 1 | 3 | 1 |
| Last Updated | 650d ago | 1002d ago | 2533d ago |
| Age | 1y 9m | 2y 11m | 6y 11m |
Health Breakdown
local-or-heap
Maintenance
1
Quality
16
Community
8
Popularity
5
Documentation
10
memory-layout
Maintenance
5
Quality
16
Community
6
Popularity
4
Documentation
15
struct_layout
Maintenance
1
Quality
16
Community
3
Popularity
4
Documentation
12
Technical Details
| local-or-heap | memory-layout | struct_layout | |
|---|---|---|---|
| Version | 0.1.0 | 0.3.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT |
| Dependencies | 0 | 1 | 0 |
| Crate Size | 3KB | 2KB | 9KB |
| Features | 0 | 1 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | — | 1.57.0 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •memory-layout leads with a health score of 46/100, but none of the options score above 80.
- •local-or-heap has the most downloads (16.9K), suggesting wider adoption.
- •⚠ local-or-heap, memory-layout, struct_layout have not been updated in over a year.