From e56fc8e2eb496d3c2f664fe3e75cd9c023990c43 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 27 Mar 2021 07:37:59 -0700 Subject: [PATCH] pbkdf2+scrypt: pin to `password-hash` v0.1.2 We've had some reports of compile errors due to an unexpected SemVer-breaking change (#147, #150). This pins the `password-hash` version to one that's guaranteed to be compatible with the current releases. --- pbkdf2/Cargo.toml | 2 +- scrypt/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml index 645d5b1e..c493e765 100644 --- a/pbkdf2/Cargo.toml +++ b/pbkdf2/Cargo.toml @@ -17,7 +17,7 @@ crypto-mac = "0.10" rayon = { version = "1", optional = true } base64ct = { version = "1", default-features = false, optional = true } hmac = { version = "0.10", default-features = false, optional = true } -password-hash = { version = "0.1", default-features = false, optional = true, features = ["rand_core"] } +password-hash = { version = "0.1.2", default-features = false, optional = true, features = ["rand_core"] } sha1 = { version = "0.9", package = "sha-1", default-features = false, optional = true } sha2 = { version = "0.9", default-features = false, optional = true } diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml index dc8380cd..9eacc014 100644 --- a/scrypt/Cargo.toml +++ b/scrypt/Cargo.toml @@ -14,7 +14,7 @@ readme = "README.md" [dependencies] base64ct = { version = "1", default-features = false, features = ["alloc"], optional = true } hmac = "0.10" -password-hash = { version = "0.1", default-features = false, features = ["rand_core"], optional = true } +password-hash = { version = "0.1.2", default-features = false, features = ["rand_core"], optional = true } pbkdf2 = { version = "0.7", default-features = false, path = "../pbkdf2" } salsa20 = { version = "0.7", default-features = false, features = ["expose-core"] } sha2 = { version = "0.9", default-features = false }