From e8814fcfd40eaa1d9985d8521a12dc3fde1bcbc2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 08:13:24 +0000 Subject: [PATCH] chore: Bump rand from 0.8.5 to 0.9.0 (#384) Bumps rand from 0.8.5 to 0.9.0. Changelog Sourced from rand's changelog. [0.9.0] - 2025-01-27 Security and unsafe Policy: "rand is not a crypto library" (#1514) Remove fork-protection from ReseedingRng and ThreadRng. Instead, it is recommended to call ThreadRng::reseed on fork. (#1379) Use zerocopy to replace some unsafe code (#1349, #1393, #1446, #1502) Dependencies Bump the MSRV to 1.63.0 (#1207, #1246, #1269, #1341, #1416, #1536); note that 1.60.0 may work for dependents when using --ignore-rust-version Update to rand_core v0.9.0 (#1558) Features Support std feature without getrandom or rand_chacha (#1354) Enable feature small_rng by default (#1455) Remove implicit feature rand_chacha; use std_rng instead. (#1473) Rename feature serde1 to serde (#1477) Rename feature getrandom to os_rng (#1537) Add feature thread_rng (#1547) API changes: rand_core traits Add fn RngCore::read_adapter implementing std::io::Read (#1267) Add trait CryptoBlockRng: BlockRngCore; make trait CryptoRng: RngCore (#1273) Add traits TryRngCore, TryCryptoRng (#1424, #1499) Rename fn SeedableRng::from_rng -> try_from_rng and add infallible variant fn from_rng (#1424) Rename fn SeedableRng::from_entropy -> from_os_rng and add fallible variant fn try_from_os_rng (#1424) Add bounds Clone and AsRef to associated type SeedableRng::Seed (#1491) API changes: Rng trait and top-level fns Rename fn rand::thread_rng() to rand::rng() and remove from the prelude (#1506) Remove fn rand::random() from the prelude (#1506) Add top-level fns random_iter, random_range, random_bool, random_ratio, fill (#1488) Re-introduce fn Rng::gen_iter as random_iter (#1305, #1500) Rename fn Rng::gen to random to avoid conflict with the new gen keyword in Rust 2024 (#1438) Rename fns Rng::gen_range to random_range, gen_bool to random_bool, gen_ratio to random_ratio (#1505) Annotate panicking methods with #[track_caller] (#1442, #1447) API changes: RNGs Fix ::Seed size to 256 bits (#1455) Remove first parameter (rng) of ReseedingRng::new (#1533) API changes: Sequences Split trait SliceRandom into IndexedRandom, IndexedMutRandom, SliceRandom (#1382) Add IndexedRandom::choose_multiple_array, index::sample_array (#1453, #1469) API changes: Distributions: renames Rename module rand::distributions to rand::distr (#1470) Rename distribution Standard to StandardUniform (#1526) Move distr::Slice -> distr::slice::Choose, distr::EmptySlice -> distr::slice::Empty (#1548) Rename trait distr::DistString -> distr::SampleString (#1548) Rename distr::DistIter -> distr::Iter, distr::DistMap -> distr::Map (#1548) ... (truncated) Commits 96f8df6 Prepare 0.9.0 release (#1558) 34da321 Enable stdarch_x86_avx512 for cpu has avx512bw (#1551) b4b1eb7 Re-org with distr::slice, distr::weighted modules (#1548) 16eb7de Add the thread_rng feature flag (#1547) afa24e4 Fix test status badges (#1544) c681dfc Create FUNDING.yml 9f05e22 Update: getrandom v0.3.0 rc.0 (#1541) 88c310b Fix docs.rs build options (#1539) b879689 Adjust GH Actions (#1538) 3fac49f Prepare 0.9.0-beta.0 (#1535) Additional commits viewable in compare view Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase. Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: @dependabot rebase will rebase this PR @dependabot recreate will recreate this PR, overwriting any edits that have been made to it @dependabot merge will merge this PR after your CI passes on it @dependabot squash and merge will squash and merge this PR after your CI passes on it @dependabot cancel merge will cancel a previously requested merge and block automerging @dependabot reopen will reopen this PR if it is closed @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually @dependabot show ignore conditions will show all of the ignore conditions of the specified dependency @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) --- Cargo.lock | 107 ++++++++++++++++++++++++++++++----- examples/test-api/Cargo.toml | 2 +- 2 files changed, 95 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 23f6c34..4ed56c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -694,7 +694,19 @@ checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.13.3+wasi-0.2.2", + "windows-targets 0.52.6", ] [[package]] @@ -1391,7 +1403,7 @@ dependencies = [ "hermit-abi", "libc", "log", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", ] @@ -1629,7 +1641,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9474d20c003131d8945af478b25c8e29477a522e408ae4ca8e8822839f5fd2f2" dependencies = [ "itertools 0.10.5", - "rand", + "rand 0.8.5", "structopt", ] @@ -1733,8 +1745,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.3", +] + +[[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", ] [[package]] @@ -1744,7 +1767,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.3", +] + +[[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]] @@ -1753,7 +1786,17 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ - "getrandom", + "getrandom 0.2.14", +] + +[[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", ] [[package]] @@ -1771,7 +1814,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom", + "getrandom 0.2.14", "redox_syscall", "thiserror 1.0.68", ] @@ -1882,7 +1925,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9babe80d5c16becf6594aa32ad2be8fe08498e7ae60b77de8df700e67f191d7e" dependencies = [ "cc", - "getrandom", + "getrandom 0.2.14", "libc", "spin", "untrusted", @@ -1910,7 +1953,7 @@ dependencies = [ "num_cpus", "parking_lot", "pin-project-lite", - "rand", + "rand 0.8.5", "ref-cast", "rocket_codegen", "rocket_http", @@ -2378,7 +2421,7 @@ checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" dependencies = [ "cfg-if", "libc", - "rand", + "rand 0.8.5", "redox_syscall", "remove_dir_all", "winapi", @@ -2408,7 +2451,7 @@ dependencies = [ name = "test-api" version = "0.2.15" dependencies = [ - "rand", + "rand 0.9.0", "rocket", "serde", "serde_json", @@ -2815,7 +2858,7 @@ version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3758f5e68192bb96cc8f9b7e2c2cfdabb435499a28499a42f8f984092adad4b" dependencies = [ - "getrandom", + "getrandom 0.2.14", ] [[package]] @@ -2852,6 +2895,15 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.13.3+wasi-0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" version = "0.2.93" @@ -3190,6 +3242,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "wit-bindgen-rt" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +dependencies = [ + "bitflags 2.4.1", +] + [[package]] name = "write16" version = "1.0.0" @@ -3235,6 +3296,26 @@ dependencies = [ "synstructure", ] +[[package]] +name = "zerocopy" +version = "0.8.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a367f292d93d4eab890745e75a778da40909cab4d6ff8173693812f79c4a2468" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3931cb58c62c13adec22e38686b559c86a30565e16ad6e8510a337cedc611e1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "zerofrom" version = "0.1.4" diff --git a/examples/test-api/Cargo.toml b/examples/test-api/Cargo.toml index 2bde916..078d6b9 100644 --- a/examples/test-api/Cargo.toml +++ b/examples/test-api/Cargo.toml @@ -7,7 +7,7 @@ version = "0.2.15" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rand = "0.8.5" +rand = "0.9.0" rocket = {version = "0.5.1", features = ["json"]} serde = {version = "1.0.217", features = ["derive"]} serde_json = "1.0.137"