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
64
libsodium-rs
growingv0.2.5
Rust bindings to libsodium for authenticated encryption, signatures, password hashing, key exchange, and streaming encryption
Core Metrics
| hard | sodium-alloc | libsodium-rs | |
|---|---|---|---|
| Health Score | 39 | 37 | 64 |
| Total Downloads | 11.6K | 3.0K | 173.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 61 |
| Releases | 9 | 2 | 8 |
| Last Updated | 1736d ago | 1775d ago | 15d ago |
| Age | 5y 3m | 5y 4m | 1y 6m |
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
18
Quality
14
Community
11
Popularity
6
Documentation
15
Technical Details
| hard | sodium-alloc | libsodium-rs | |
|---|---|---|---|
| Version | 0.5.0 | 0.1.1 | 0.2.5 |
| 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 | 178KB |
| Features | 1 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2018 | 2021 |
| MSRV | — | — | 1.88.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •libsodium-rs leads with a health score of 64/100, but none of the options score above 80.
- •⚠ hard, sodium-alloc have not been updated in over a year.