From 12aaba0bbe79b88b0fed32e5119f58343118732b Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 9 Feb 2026 08:35:40 -0700 Subject: [PATCH] Bump `rand` to v0.10 Release PR: rust-random/rand#1729 --- Cargo.lock | 36 ++++++++++++++++++++------------ Cargo.toml | 2 -- cms/Cargo.toml | 2 +- x509-cert/Cargo.toml | 2 +- x509-ocsp/Cargo.toml | 2 +- x509-ocsp/src/builder/request.rs | 2 +- 6 files changed, 27 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3f8dd7af0..e3e8ee2d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ checksum = "04097e08a47d9ad181c2e1f4a5fabc9ae06ce8839a333ba9a949bcb0d31fd2a3" dependencies = [ "cipher", "cpubits", - "cpufeatures", + "cpufeatures 0.2.17", ] [[package]] @@ -213,12 +213,12 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "chacha20" -version = "0.10.0-rc.10" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c536927023d1c432e6e23a25ef45f6756094eac2ab460db5fb17a772acdfd312" +checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.3.0", "rand_core 0.10.0", ] @@ -324,7 +324,7 @@ dependencies = [ "pbkdf2", "pem-rfc7468", "pkcs5", - "rand 0.10.0-rc.8", + "rand 0.10.0", "rsa", "sha1", "sha2", @@ -370,6 +370,15 @@ dependencies = [ "libc", ] +[[package]] +name = "cpufeatures" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +dependencies = [ + "libc", +] + [[package]] name = "criterion" version = "0.6.0" @@ -906,7 +915,7 @@ version = "0.2.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a412fe37705d515cba9dbf1448291a717e187e2351df908cfc0137cbec3d480" dependencies = [ - "cpufeatures", + "cpufeatures 0.2.17", ] [[package]] @@ -1114,7 +1123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "63641a86fddf4b5274f31c43734458ec7acd3133016dbaa37e4e247e1e9acd46" dependencies = [ "cpubits", - "cpufeatures", + "cpufeatures 0.2.17", "universal-hash", ] @@ -1249,8 +1258,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.10.0-rc.8" -source = "git+https://github.com/rust-random/rand#9c98f59e8b042e5c7c714e933e49b384a4ce75a6" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc266eb313df6c5c09c1c7b1fbe2510961e5bcd3add930c1e31f7ed9da0feff8" dependencies = [ "chacha20", "getrandom 0.4.0", @@ -1618,7 +1628,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b167252f3c126be0d8926639c4c4706950f01445900c4b3db0fd7e89fcb750a" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.17", "digest", ] @@ -1629,7 +1639,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c5f3b1e2dc8aad28310d8410bd4d7e180eca65fca176c52ab00d364475d0024" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.17", "digest", ] @@ -2145,7 +2155,7 @@ dependencies = [ "ecdsa", "hex-literal", "p256", - "rand 0.10.0-rc.8", + "rand 0.10.0", "rsa", "rstest", "sha1", @@ -2176,7 +2186,7 @@ dependencies = [ "digest", "hex-literal", "lazy_static", - "rand 0.10.0-rc.8", + "rand 0.10.0", "rand_core 0.10.0", "rsa", "sha1", diff --git a/Cargo.toml b/Cargo.toml index fc979ce2c..866c98d48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,5 +60,3 @@ tls_codec_derive = { path = "./tls_codec/derive" } x509-tsp = { path = "./x509-tsp" } x509-cert = { path = "./x509-cert" } x509-ocsp = { path = "./x509-ocsp" } - -rand = { git = "https://github.com/rust-random/rand" } diff --git a/cms/Cargo.toml b/cms/Cargo.toml index cbaa9a6a4..7303ca33d 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -42,7 +42,7 @@ hex-literal = "1" pem-rfc7468 = "1" pkcs5 = "0.8.0-rc.13" pbkdf2 = "0.13.0-rc.9" -rand = "0.10.0-rc.8" +rand = "0.10" rsa = { version = "0.10.0-rc.15", features = ["sha2"] } ecdsa = { version = "0.17.0-rc.16", features = ["digest", "pem"] } p256 = "0.14.0-rc.7" diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml index 4998bb118..8ae1f180c 100644 --- a/x509-cert/Cargo.toml +++ b/x509-cert/Cargo.toml @@ -29,7 +29,7 @@ tls_codec = { version = "0.4", default-features = false, features = ["derive"], [dev-dependencies] hex-literal = "1" -rand = "0.10.0-rc.8" +rand = "0.10" rsa = { version = "0.10.0-rc.15", features = ["sha2"] } ecdsa = { version = "0.17.0-rc.16", features = ["digest", "pem"] } p256 = "0.14.0-rc.7" diff --git a/x509-ocsp/Cargo.toml b/x509-ocsp/Cargo.toml index 0092f1815..77cd83d19 100644 --- a/x509-ocsp/Cargo.toml +++ b/x509-ocsp/Cargo.toml @@ -29,7 +29,7 @@ signature = { version = "3.0.0-rc.10", optional = true, default-features = false [dev-dependencies] hex-literal = "1" lazy_static = "1.5.0" -rand = "0.10.0-rc.8" +rand = "0.10" rsa = { version = "0.10.0-rc.15", default-features = false, features = ["encoding", "sha2"] } sha1 = { version = "0.11.0-rc.5", default-features = false, features = ["oid"] } sha2 = { version = "0.11.0-rc.5", default-features = false, features = ["oid"] } diff --git a/x509-ocsp/src/builder/request.rs b/x509-ocsp/src/builder/request.rs index 45cb587fd..09dfff255 100644 --- a/x509-ocsp/src/builder/request.rs +++ b/x509-ocsp/src/builder/request.rs @@ -39,7 +39,7 @@ use x509_cert::{ /// .with_request(Request::from_cert::(&issuer, &cert).unwrap()) /// .build(); /// -/// let mut rng = rand::thread_rng(); +/// let mut rng = rand::rng(); /// /// let req = OcspRequestBuilder::default() /// .with_request(Request::from_issuer::(&issuer, SerialNumber::from(2usize)).unwrap())