From 8c4d2eea588d84780b70c3d8ee091bcffa25b2b8 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 9 Dec 2025 17:18:42 -0700 Subject: [PATCH] password-hash: use `phc` v0.6.0-rc.0 Switches from obtaining the `phc` crate via git to using the initial crate release --- Cargo.lock | 5 +++-- Cargo.toml | 1 - password-hash/Cargo.toml | 2 +- password-hash/src/lib.rs | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5df257cc3..6b52f5df4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -338,8 +338,9 @@ dependencies = [ [[package]] name = "phc" -version = "0.3.0-pre" -source = "git+https://github.com/RustCrypto/formats#1e7caeb8e57b89d5cff1fba6ab500928fb3eccf7" +version = "0.6.0-rc.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61f960577aaac5c259bc0866d685ba315c0ed30793c602d7287f54980913863" dependencies = [ "base64ct", "subtle", diff --git a/Cargo.toml b/Cargo.toml index 1bf315815..408b9a7f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,3 @@ digest = { path = "digest" } signature = { path = "signature" } getrandom = { git = "https://github.com/rust-random/getrandom" } -phc = { git = "https://github.com/RustCrypto/formats" } diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index b4cbe4ba3..dc690d0f6 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -17,7 +17,7 @@ as well as a `no_std`-friendly implementation of the PHC string format """ [dependencies] -phc = { version = "0.3.0-pre", optional = true, default-features = false } +phc = { version = "0.6.0-rc.0", optional = true, default-features = false } [features] alloc = ["phc?/alloc"] diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index ee55eb152..fe0af796f 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -50,6 +50,7 @@ pub type PasswordHash = phc::PasswordHash; since = "0.6.0", note = "use `password_hash::phc::PasswordHash` or `String`" )] +#[allow(deprecated)] pub type PasswordHashString = phc::PasswordHashString; use core::{