diff --git a/Cargo.toml b/Cargo.toml index ea49e62..603aaed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ lto = "fat" [dependencies] fastly = "0.12.0" hmac-sha256 = "1.1.7" -rand = "0.9.0" +rand = "0.10.1" serde = { version = "1.0.203", features = ["derive"] } serde_json = "1.0.120" base64 = "0.22.1" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b458106..d56ec4b 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.90" +channel = "stable" targets = [ "wasm32-wasip1" ] profile = "default" diff --git a/src/pkce.rs b/src/pkce.rs index c336811..7cd33de 100644 --- a/src/pkce.rs +++ b/src/pkce.rs @@ -5,7 +5,7 @@ use base64::{ }; use hmac_sha256::Hash; use rand::distr::Alphanumeric; -use rand::{rng, Rng}; +use rand::{rng, RngExt}; use std::iter; const CUSTOM_ENGINE: engine::GeneralPurpose = engine::GeneralPurpose::new(&alphabet::URL_SAFE, general_purpose::NO_PAD);