From f8f20ee419ad71218e1a32aa35ea501dade26449 Mon Sep 17 00:00:00 2001 From: pinkforest <36498018+pinkforest@users.noreply.github.com> Date: Sat, 16 Mar 2024 07:47:16 +1100 Subject: [PATCH] Enable `getrandom` for `rand_core` temporarily for `GenericSigner` --- Cargo.lock | 3 +++ Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3b53f7d..02d964f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -602,6 +602,9 @@ name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] [[package]] name = "rfc6979" diff --git a/Cargo.toml b/Cargo.toml index b841227..c896314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ p384 = { version = "0.13.0", default-features = false, features = ["pem", "ecdsa paste = { version = "1.0.14", default-features = false } pkcs8 = { version = "0.10.2", default-features = false, features = ["pem", "pkcs5"] } pki-types = { package = "rustls-pki-types", version = "1.0.1", default-features = false } -rand_core = { version = "0.6.4", default-features = false } +rand_core = { version = "0.6.4", default-features = false, features = ["getrandom"] } rsa = { version = "0.9.2", default-features = false, features = ["sha2"] } rustls = { version = "0.23.0", default-features = false } sec1 = { version = "0.7.3", default-features = false, features = ["pkcs8", "pem"] }