From 5bc7e30c6d94d3c086e1591dfedcfc9d5365319d Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 5 Dec 2025 21:23:51 -0500 Subject: [PATCH 1/5] Update rand dependency with additional features --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e56ecb9..f55a29b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ palette_support = ["dep:palette"] ecolor_support = ["dep:ecolor"] [dependencies] -rand = { version = "0.9", features = ["small_rng"] } +rand = { version = "0.9", default-features=false, features = ["small_rng", "std", "std_rng", "thread_rng"] } rgb = { version = "0.8.50", optional = true } palette = { version = "0.7.6", optional = true } ecolor = { version = "0.31", optional = true } From 6f25017d39ff63a85f3501379fae9ba5a04973c4 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 5 Dec 2025 21:29:31 -0500 Subject: [PATCH 2/5] Update Cargo.toml --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f55a29b..374729a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "random_color" -version = "1.1.0" +version = "1.2.0" edition = "2021" authors = ["Lucas Maximiliano Marino "] license = "MIT" From 62853a22a450db8bc95b1081d3cbb3f65ff031b2 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 5 Dec 2025 21:33:39 -0500 Subject: [PATCH 3/5] Remove 'thread_rng' feature from rand dependency --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 374729a..b3c1d4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ palette_support = ["dep:palette"] ecolor_support = ["dep:ecolor"] [dependencies] -rand = { version = "0.9", default-features=false, features = ["small_rng", "std", "std_rng", "thread_rng"] } +rand = { version = "0.9", default-features=false, features = ["small_rng", "std", "std_rng"] } rgb = { version = "0.8.50", optional = true } palette = { version = "0.7.6", optional = true } ecolor = { version = "0.31", optional = true } From 4c0d6d4d274574419c7bab0bbd9dfe78fb8907b3 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 5 Dec 2025 21:38:12 -0500 Subject: [PATCH 4/5] Update Cargo.toml --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b3c1d4a..03074a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,12 +14,14 @@ description = "Rust crate for generating random attractive colors" rgb_support = ["dep:rgb"] palette_support = ["dep:palette"] ecolor_support = ["dep:ecolor"] +wasm = ["dep:getrandom"] [dependencies] -rand = { version = "0.9", default-features=false, features = ["small_rng", "std", "std_rng"] } +rand = { version = "0.9", features = ["small_rng"] } rgb = { version = "0.8.50", optional = true } palette = { version = "0.7.6", optional = true } ecolor = { version = "0.31", optional = true } +getrandom = { version="0.3.4", optional = true, features = ["wasm_js"] } [package.metadata.docs.rs] all-features = true From 90d1aec5df8ca3eaec9e29b5efcf55a77731cd20 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 5 Dec 2025 21:39:33 -0500 Subject: [PATCH 5/5] Fix formatting in Cargo.toml for getrandom dependency --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 03074a4..9ce33ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ rand = { version = "0.9", features = ["small_rng"] } rgb = { version = "0.8.50", optional = true } palette = { version = "0.7.6", optional = true } ecolor = { version = "0.31", optional = true } -getrandom = { version="0.3.4", optional = true, features = ["wasm_js"] } +getrandom = { version = "0.3.4", optional = true, features = ["wasm_js"] } [package.metadata.docs.rs] all-features = true