diff --git a/Cargo.lock b/Cargo.lock index e14c5208..b5ffacae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,7 +38,7 @@ dependencies = [ "getrandom 0.2.15", "once_cell", "version_check", - "zerocopy", + "zerocopy 0.7.35", ] [[package]] @@ -795,7 +795,7 @@ dependencies = [ "mockall", "parity-scale-codec", "post-rs", - "rand", + "rand 0.9.0", "serde", "serde_json", "serde_with", @@ -1355,7 +1355,7 @@ checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek", "ed25519", - "rand_core", + "rand_core 0.6.4", "serde", "sha2", "subtle", @@ -1522,7 +1522,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534" dependencies = [ "byteorder", - "rand", + "rand 0.8.5", "rustc-hex", "static_assertions", ] @@ -2298,7 +2298,7 @@ dependencies = [ "env_logger", "eyre", "post-rs", - "rand", + "rand 0.9.0", "rayon", "scrypt-ocl", ] @@ -2590,7 +2590,7 @@ dependencies = [ "hashbrown 0.15.2", "metrics", "quanta", - "rand", + "rand 0.8.5", "rand_xoshiro", "sketches-ddsketch", ] @@ -3197,7 +3197,7 @@ dependencies = [ "pprof", "primitive-types", "proptest", - "rand", + "rand 0.9.0", "randomx-rs", "rayon", "regex", @@ -3248,7 +3248,7 @@ version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" dependencies = [ - "zerocopy", + "zerocopy 0.7.35", ] [[package]] @@ -3342,7 +3342,7 @@ dependencies = [ "hex", "libc", "post-rs", - "rand", + "rand 0.9.0", "rayon", "serde", "serde_json", @@ -3361,8 +3361,8 @@ dependencies = [ "bitflags 2.6.0", "lazy_static", "num-traits 0.2.19", - "rand", - "rand_chacha", + "rand 0.8.5", + "rand_chacha 0.3.1", "rand_xorshift", "regex-syntax 0.8.5", "rusty-fork", @@ -3484,8 +3484,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", - "rand_core", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.0", + "zerocopy 0.8.15", ] [[package]] @@ -3495,7 +3506,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.0", ] [[package]] @@ -3507,13 +3528,23 @@ dependencies = [ "getrandom 0.2.15", ] +[[package]] +name = "rand_core" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b08f3c9802962f7e1b25113931d94f43ed9725bebc59db9d0c3e9a23b67e15ff" +dependencies = [ + "getrandom 0.3.1", + "zerocopy 0.8.15", +] + [[package]] name = "rand_xorshift" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" dependencies = [ - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -3522,7 +3553,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" dependencies = [ - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -3800,7 +3831,7 @@ dependencies = [ "http 0.2.12", "mime", "mime_guess", - "rand", + "rand 0.8.5", "thiserror 1.0.69", ] @@ -4177,7 +4208,7 @@ version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -4693,7 +4724,7 @@ dependencies = [ "indexmap 1.9.3", "pin-project", "pin-project-lite", - "rand", + "rand 0.8.5", "slab", "tokio", "tokio-util", @@ -5488,7 +5519,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ "byteorder", - "zerocopy-derive", + "zerocopy-derive 0.7.35", +] + +[[package]] +name = "zerocopy" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1e101d4bc320b6f9abb68846837b70e25e380ca2f467ab494bf29fcc435fcc3" +dependencies = [ + "zerocopy-derive 0.8.15", ] [[package]] @@ -5502,6 +5542,17 @@ dependencies = [ "syn 2.0.95", ] +[[package]] +name = "zerocopy-derive" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a73df1008145cd135b3c780d275c57c3e6ba8324a41bd5e0008fe167c3bc7c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.95", +] + [[package]] name = "zerofrom" version = "0.1.5" diff --git a/Cargo.toml b/Cargo.toml index aa3d4711..448cd7df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ scrypt-jane = { git = "https://github.com/spacemeshos/scrypt-jane-rs", branch = blake3 = "1.5.5" bitvec = "1.0.1" rayon = "1.10.0" -rand = "0.8.5" +rand = "0.9.0" log = "0.4.25" randomx-rs = { git = "https://github.com/spacemeshos/randomx-rs", rev = "d46bcd90e09428883e253b8203d6b311b0a07b91" } @@ -53,7 +53,7 @@ futures = "0.3.31" [dev-dependencies] criterion = "0.5" tempfile = "3.16.0" -rand = "0.8.5" +rand = "0.9.0" proptest = "1.6.0" rstest = "0.24.0" diff --git a/certifier/Cargo.toml b/certifier/Cargo.toml index eb83d46d..b191502a 100644 --- a/certifier/Cargo.toml +++ b/certifier/Cargo.toml @@ -21,7 +21,7 @@ config = "0.15.6" tracing = { version = "0.1.41", features = ["log"] } tracing-log = "0.2.0" tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } -rand = "0.8.5" +rand = "0.9.0" serde_json = "1.0.138" base64 = "0.22.1" axum-prometheus = "0.8.0" diff --git a/initializer/Cargo.toml b/initializer/Cargo.toml index 552b03f9..68354bae 100644 --- a/initializer/Cargo.toml +++ b/initializer/Cargo.toml @@ -12,5 +12,5 @@ post-rs = { path = "../" } scrypt-ocl = { path = "../scrypt-ocl" } rayon = "1.10.0" eyre = "0.6.12" -rand = "0.8.5" +rand = "0.9.0" env_logger = "0.11.6" diff --git a/profiler/Cargo.toml b/profiler/Cargo.toml index 87edbb46..87c2c7d2 100644 --- a/profiler/Cargo.toml +++ b/profiler/Cargo.toml @@ -10,7 +10,7 @@ eyre = "0.6.12" hex = "0.4.3" libc = "0.2.169" post-rs = { path = "../" } -rand = "0.8.5" +rand = "0.9.0" rayon = "1.10.0" serde = { version = "1.0.217", features = ["derive"] } serde_json = "1.0.138"