Decision Workspace
hard vs sodium-alloc vs libsodium-rs
Side-by-side comparison of Rust crates
39
hard
growingv0.5.0
Security hardened buffers for Rust based on libsodium
37
sodium-alloc
growingv0.1.1
Allocator type that allocates memory using Sodium's secure memory utilities
58
libsodium-rs
experimentalv0.2.2
A comprehensive, idiomatic Rust wrapper for libsodium, providing a safe and ergonomic API for cryptographic operations
Core Metrics
| hard | sodium-alloc | libsodium-rs | |
|---|---|---|---|
| Health Score | 39 | 37 | 58 |
| Total Downloads | 11.5K | 2.9K | 72.8K |
| 30d Downloads | 28 | 5 | 19.7K |
| Dependents | 0 | 0 | 15 |
| Releases | 9 | 2 | 5 |
| Last Updated | 1540d ago | 1579d ago | 80d ago |
| Age | 4y 9m | 4y 9m | 11m |
Health Breakdown
hard
Maintenance
4
Quality
15
Community
6
Popularity
5
Documentation
9
sodium-alloc
Maintenance
3
Quality
15
Community
6
Popularity
4
Documentation
9
libsodium-rs
Maintenance
15
Quality
13
Community
9
Popularity
6
Documentation
15
Technical Details
| hard | sodium-alloc | libsodium-rs | |
|---|---|---|---|
| Version | 0.5.0 | 0.1.1 | 0.2.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 1 | 8 |
| Crate Size | 16KB | 9KB | 176KB |
| Features | 1 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | — | 1.60.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •libsodium-rs leads with a health score of 58/100, but none of the options score above 80.
- •⚠ hard, sodium-alloc have not been updated in over a year.