Decision Workspace
memory-layout vs local-or-heap vs struct_layout
Side-by-side comparison of Rust crates
45
memory-layout
growingv0.3.0
explicit struct layouts.
42
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 | 45 | 42 | 36 |
| Total Downloads | 4.1K | 62.4K | 2.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 9 | 0 |
| Releases | 3 | 1 | 1 |
| Last Updated | 1198d ago | 846d ago | 2730d ago |
| Age | 3y 5m | 2y 3m | 7y 5m |
Health Breakdown
memory-layout
Maintenance
4
Quality
16
Community
6
Popularity
4
Documentation
15
local-or-heap
Maintenance
1
Quality
16
Community
9
Popularity
6
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 45/100, but none of the options score above 80.
- •local-or-heap has the most downloads (62.4K), suggesting wider adoption.
- •⚠ memory-layout, local-or-heap, struct_layout have not been updated in over a year.