Decision Workspace
lockedbox vs duende-mlock vs os-memlock
Side-by-side comparison of Rust crates
43
lockedbox
growingv0.1.2
A Box-like type that prevents paging its contents to disk.
55
duende-mlock
experimentalv1.0.0
Memory locking for swap-critical daemons (DT-007: Swap Deadlock Prevention)
50
os-memlock
experimentalv0.2.0
Unsafe thin wrappers around OS memory locking syscalls (mlock/munlock/madvise)
Core Metrics
| lockedbox | duende-mlock | os-memlock | |
|---|---|---|---|
| Health Score | 43 | 55 | 50 |
| Total Downloads | 9.2K | 1.0K | 1.1K |
| 30d Downloads | 173 | 118 | 37 |
| Dependents | 1 | 5 | 0 |
| Releases | 3 | 1 | 4 |
| Last Updated | 621d ago | 80d ago | 175d ago |
| Age | 2y 6m | 2m | 5m |
Health Breakdown
lockedbox
Maintenance
5
Quality
15
Community
6
Popularity
5
Documentation
12
duende-mlock
Maintenance
9
Quality
19
Community
8
Popularity
4
Documentation
15
os-memlock
Maintenance
16
Quality
14
Community
3
Popularity
4
Documentation
13
Technical Details
| lockedbox | duende-mlock | os-memlock | |
|---|---|---|---|
| Version | 0.1.2 | 1.0.0 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 1 | 3 | 2 |
| Crate Size | 11KB | 13KB | 22KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2024 |
| MSRV | 1.56.1 | 1.85 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •duende-mlock leads with a health score of 55/100, but none of the options score above 80.
- •lockedbox has the most downloads (9.2K), suggesting wider adoption.
- •⚠ lockedbox has not been updated in over a year.
- •lockedbox, os-memlock are pre-1.0 — API may change.