Decision Workspace
cphf vs argon2 vs const-gen
Side-by-side comparison of Rust crates
42
cphf
growingv1.0.0
Compile-time perfect hash function data structures
69
argon2
growingv0.6.0
Pure Rust implementation of the Argon2 password hashing function with support for the Argon2d, Argon2i, and Argon2id algorithmic variants
69
const-gen
stablev1.6.10
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| cphf | argon2 | const-gen | |
|---|---|---|---|
| Health Score | 42 | 69 | 69 |
| Total Downloads | 4.0K | 60.9M | 602.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 17.2K | 37 |
| Releases | 1 | 37 | 46 |
| Last Updated | 581d ago | 43d ago | 12d ago |
| Age | 1y 7m | 9y 7m | 5y 5m |
Health Breakdown
cphf
Maintenance
1
Quality
19
Community
6
Popularity
4
Documentation
12
argon2
Maintenance
15
Quality
11
Community
20
Popularity
8
Documentation
15
const-gen
Maintenance
18
Quality
22
Community
10
Popularity
7
Documentation
12
Technical Details
| cphf | argon2 | const-gen | |
|---|---|---|---|
| Version | 1.0.0 | 0.6.0 | 1.6.10 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 8 | 2 |
| Crate Size | 16KB | 35KB | 11KB |
| Features | 1 | 8 | 5 |
| Yanked % | 0.0% | 29.7% | 2.2% |
| Edition | 2021 | 2024 | 2018 |
| MSRV | 1.85.0 | 1.85 | — |
| Owners | 1 | 2 (team) | 1 |
Links
Quick Verdict
- •argon2 leads with a health score of 69/100, but none of the options score above 80.
- •argon2 is depended on by 17.2K crates — strongest ecosystem trust.
- •⚠ cphf has not been updated in over a year.
- •argon2 is pre-1.0 — API may change.