Decision Workspace
sodium-alloc vs global-allocator vs mmap-allocator
Side-by-side comparison of Rust crates
37
sodium-alloc
growingv0.1.1
Allocator type that allocates memory using Sodium's secure memory utilities
45
global-allocator
experimentalv0.1.0
A tiny, dependency-free building block for defining a custom global allocator in any Rust crate.
40
mmap-allocator
growingv0.3.1
struct implementing trait std::alloc::GlobalAlloc for unix
Core Metrics
| sodium-alloc | global-allocator | mmap-allocator | |
|---|---|---|---|
| Health Score | 37 | 45 | 40 |
| Total Downloads | 3.0K | 24 | 120.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 0 |
| Releases | 2 | 1 | 4 |
| Last Updated | 1775d ago | 87d ago | 2065d ago |
| Age | 5y 4m | 2m | 6y 3m |
Health Breakdown
sodium-alloc
Maintenance
3
Quality
15
Community
6
Popularity
4
Documentation
9
global-allocator
Maintenance
8
Quality
17
Community
6
Popularity
2
Documentation
12
mmap-allocator
Maintenance
4
Quality
13
Community
5
Popularity
6
Documentation
12
Technical Details
| sodium-alloc | global-allocator | mmap-allocator | |
|---|---|---|---|
| Version | 0.1.1 | 0.1.0 | 0.3.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 OR LGPL-3.0-or-later |
| Dependencies | 1 | 0 | 1 |
| Crate Size | 9KB | 8KB | 1.7MB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | 1.70 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •global-allocator leads with a health score of 45/100, but none of the options score above 80.
- •mmap-allocator has the most downloads (120.4K), suggesting wider adoption.
- •⚠ sodium-alloc, mmap-allocator have not been updated in over a year.