Decision Workspace
memory-layout vs local-or-heap vs struct_layout
Side-by-side comparison of Rust crates
46
memory-layout
growingv0.3.0
explicit struct layouts.
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
36
struct_layout
growingv0.1.0
Customize your struct layout with this one weird trick.
Core Metrics
| memory-layout | local-or-heap | struct_layout | |
|---|---|---|---|
| Health Score | 46 | 40 | 36 |
| Total Downloads | 4.0K | 16.9K | 2.3K |
| 30d Downloads | 10 | 1.0K | 9 |
| Dependents | 0 | 4 | 0 |
| Releases | 3 | 1 | 1 |
| Last Updated | 1002d ago | 650d ago | 2533d ago |
| Age | 2y 11m | 1y 9m | 6y 11m |
Health Breakdown
memory-layout
Maintenance
5
Quality
16
Community
6
Popularity
4
Documentation
15
local-or-heap
Maintenance
1
Quality
16
Community
8
Popularity
5
Documentation
10
struct_layout
Maintenance
1
Quality
16
Community
3
Popularity
4
Documentation
12
Technical Details
| memory-layout | local-or-heap | struct_layout | |
|---|---|---|---|
| Version | 0.3.0 | 0.1.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 1 | 0 | 0 |
| Crate Size | 2KB | 3KB | 9KB |
| Features | 1 | 0 | 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.
- •⚠ memory-layout, local-or-heap, struct_layout have not been updated in over a year.