mirror of
https://github.com/RustCrypto/password-hashes.git
synced 2026-01-25 04:06:23 +00:00
This upgrades `rand_core` to v0.10 prereleases and depends directly on `getrandom` for access to the system RNG. It additionally bumps other crates like `digest` and `blake2` which use the new `crypto-common` with an upgraded `rand_core`. This required restoring some functionality in `blake2` which was used by `argon2`: https://github.com/RustCrypto/hashes/pull/754 This is currently referenced as a git branch until we decide if this is a permanent solution for `argon2` or not, so as to unblock the upgrade.
52 lines
1.5 KiB
TOML
52 lines
1.5 KiB
TOML
[package]
|
|
name = "argon2"
|
|
version = "0.6.0-rc.1"
|
|
description = """
|
|
Pure Rust implementation of the Argon2 password hashing function with support
|
|
for the Argon2d, Argon2i, and Argon2id algorithmic variants
|
|
"""
|
|
authors = ["RustCrypto Developers"]
|
|
license = "MIT OR Apache-2.0"
|
|
documentation = "https://docs.rs/argon2"
|
|
homepage = "https://github.com/RustCrypto/password-hashes/tree/master/argon2"
|
|
repository = "https://github.com/RustCrypto/password-hashes"
|
|
keywords = ["crypto", "hashing", "password", "phf"]
|
|
categories = ["authentication", "cryptography", "no-std"]
|
|
readme = "README.md"
|
|
edition = "2024"
|
|
rust-version = "1.85"
|
|
|
|
[dependencies]
|
|
base64ct = "1.7"
|
|
blake2 = { version = "0.11.0-rc.2", default-features = false }
|
|
|
|
# optional dependencies
|
|
rayon = { version = "1.7", optional = true }
|
|
password-hash = { version = "0.6.0-rc.1", optional = true }
|
|
zeroize = { version = "1", default-features = false, optional = true }
|
|
|
|
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
|
|
cpufeatures = "0.2.17"
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "1"
|
|
password-hash = { version = "0.6.0-rc.1", features = ["rand_core"] }
|
|
|
|
[features]
|
|
default = ["alloc", "password-hash", "rand"]
|
|
alloc = ["password-hash?/alloc"]
|
|
std = ["alloc", "base64ct/std"]
|
|
|
|
getrandom = ["simple", "password-hash/getrandom"]
|
|
parallel = ["dep:rayon"]
|
|
rand = ["password-hash?/rand_core"]
|
|
simple = ["password-hash"]
|
|
zeroize = ["dep:zeroize"]
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
check-cfg = ['cfg(test_large_ram)']
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|