bump fastrand
Some checks failed
Rust / build (push) Has been cancelled

This commit is contained in:
Chris Tsang
2025-10-17 22:01:37 +01:00
parent efa4351b2c
commit 8acb6bd911
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "vtracer"
version = "0.6.4"
version = "0.6.5"
authors = ["Chris Tsang <chris.2y3@outlook.com>"]
edition = "2021"
description = "A cmd app to convert images into vector graphics."
@@ -14,11 +14,12 @@ keywords = ["svg", "computer-graphics"]
clap = "2.33.3"
image = "0.23.10"
visioncortex = { version = "0.8.8" }
fastrand = "1.8"
fastrand = { version = "2.3" }
pyo3 = { version = "0.19.0", optional = true }
[features]
python-binding = ["pyo3"]
wasm = ["fastrand/js"]
[lib]
name = "vtracer"

View File

@@ -53,7 +53,7 @@ fn find_unused_color_in_image(img: &ColorImage) -> Result<Color, String> {
Color::new(0, 255, 255),
Color::new(255, 0, 255),
]);
let rng = Rng::new();
let mut rng = Rng::new();
let random_colors =
(0..NUM_UNUSED_COLOR_ITERATIONS).map(|_| Color::new(rng.u8(..), rng.u8(..), rng.u8(..)));
for color in special_colors.chain(random_colors) {