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 a86426ae..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.9", 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" 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"