From 64f62f5ee0c6a2111e0921522e3505fd4eaade5a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 03:07:02 +0000 Subject: [PATCH 1/2] Update rand requirement from 0.9 to 0.10 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.1...0.10.0) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- plotly/Cargo.toml | 2 +- plotly_static/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plotly/Cargo.toml b/plotly/Cargo.toml index a86426ae..48cfef16 100644 --- a/plotly/Cargo.toml +++ b/plotly/Cargo.toml @@ -69,7 +69,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_repr = "0.1" serde_with = ">=2, <4" -rand = { version = "0.9", default-features = false, features = [ +rand = { version = "0.10", default-features = false, features = [ "small_rng", "alloc", ] } diff --git a/plotly_static/Cargo.toml b/plotly_static/Cargo.toml index 4e233cc7..0c355eba 100644 --- a/plotly_static/Cargo.toml +++ b/plotly_static/Cargo.toml @@ -22,7 +22,7 @@ debug = [] [dependencies] log = "0.4" serde = { version = "1.0", features = ["derive"] } -rand = "0.9" +rand = "0.10" serde_json = "1.0" base64 = "0.22" fantoccini = "0.22" From 0cb66046717f1d4ae222a35f7c300a6737aecff4 Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Wed, 11 Feb 2026 19:51:05 +0100 Subject: [PATCH 2/2] bump rand_distr and remove obsolete small_rng features Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- examples/3d_charts/Cargo.toml | 2 +- examples/3d_charts/src/main.rs | 2 +- examples/basic_charts/Cargo.toml | 4 ++-- examples/shapes/Cargo.toml | 4 ++-- examples/statistical_charts/Cargo.toml | 4 ++-- plotly/Cargo.toml | 7 ++----- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/examples/3d_charts/Cargo.toml b/examples/3d_charts/Cargo.toml index c6ebb78e..2c614321 100644 --- a/examples/3d_charts/Cargo.toml +++ b/examples/3d_charts/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" [dependencies] ndarray = "0.17" -rand = "0.9" +rand = "0.10" plotly = { path = "../../plotly" } plotly_utils = { path = "../plotly_utils" } diff --git a/examples/3d_charts/src/main.rs b/examples/3d_charts/src/main.rs index 95b4d179..c6765c05 100644 --- a/examples/3d_charts/src/main.rs +++ b/examples/3d_charts/src/main.rs @@ -8,7 +8,7 @@ use plotly::{ Mesh3D, Plot, Scatter3D, Surface, }; use plotly_utils::write_example_to_html; -use rand::Rng; +use rand::RngExt; // 3D Scatter Plots // ANCHOR: simple_scatter3d_plot diff --git a/examples/basic_charts/Cargo.toml b/examples/basic_charts/Cargo.toml index 8899115b..a1bc13b3 100644 --- a/examples/basic_charts/Cargo.toml +++ b/examples/basic_charts/Cargo.toml @@ -8,6 +8,6 @@ edition = "2021" ndarray = "0.17" plotly = { path = "../../plotly" } plotly_utils = { path = "../plotly_utils" } -rand = "0.9" -rand_distr = "0.5" +rand = "0.10" +rand_distr = "0.6" csv = "1.3" diff --git a/examples/shapes/Cargo.toml b/examples/shapes/Cargo.toml index a61443e9..d6ae8fb6 100644 --- a/examples/shapes/Cargo.toml +++ b/examples/shapes/Cargo.toml @@ -8,5 +8,5 @@ edition = "2021" ndarray = "0.17" plotly = { path = "../../plotly" } plotly_utils = { path = "../plotly_utils" } -rand = "0.9" -rand_distr = "0.5" +rand = "0.10" +rand_distr = "0.6" diff --git a/examples/statistical_charts/Cargo.toml b/examples/statistical_charts/Cargo.toml index b800f536..15ee7a91 100644 --- a/examples/statistical_charts/Cargo.toml +++ b/examples/statistical_charts/Cargo.toml @@ -8,5 +8,5 @@ edition = "2021" ndarray = "0.17" plotly = { path = "../../plotly" } plotly_utils = { path = "../plotly_utils" } -rand = "0.9" -rand_distr = "0.5" +rand = "0.10" +rand_distr = "0.6" diff --git a/plotly/Cargo.toml b/plotly/Cargo.toml index 48cfef16..3d3d0af5 100644 --- a/plotly/Cargo.toml +++ b/plotly/Cargo.toml @@ -69,10 +69,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_repr = "0.1" serde_with = ">=2, <4" -rand = { version = "0.10", default-features = false, features = [ - "small_rng", - "alloc", -] } +rand = { version = "0.10", default-features = false, features = ["alloc"] } async-trait = { version = "0.1", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] @@ -92,5 +89,5 @@ itertools = ">=0.10, <0.15" itertools-num = "0.1" ndarray = "0.17" plotly_static = { path = "../plotly_static" } -rand_distr = "0.5" +rand_distr = "0.6" base64 = "0.22"