diff --git a/Cargo.lock b/Cargo.lock index 092af1d..ecf6d88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1722,7 +1722,7 @@ dependencies = [ "tempfile", "tokio", "url", - "uuid 0.8.2", + "uuid 1.8.0", "yaml-rust", ] @@ -3262,9 +3262,6 @@ name = "uuid" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" -dependencies = [ - "getrandom", -] [[package]] name = "uuid" diff --git a/Cargo.toml b/Cargo.toml index 49da4a3..463cac4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ polars = { version = "0.32", features = ["dtype-u8"] } connectorx = { version = "0.3.2", features = ["src_postgres", "dst_arrow2"] } postgres = "0.19.2" url = "2.5" -uuid = { version = "0.8", features = ["v4"] } +uuid = { version = "1.8", features = ["v4"] } lettre = { version = "0.11", default-features = false, features = ["builder", "pool", "smtp-transport", "file-transport", "rustls-tls"] } infer = "0.15" bytes = "1.6" diff --git a/src/sources/image.rs b/src/sources/image.rs index 9fd0026..455eb94 100644 --- a/src/sources/image.rs +++ b/src/sources/image.rs @@ -44,7 +44,7 @@ pub fn write_image( ), }; - let image_name = image_name.unwrap_or(Uuid::new_v4().to_hyphenated().to_string()); + let image_name = image_name.unwrap_or(Uuid::new_v4().to_string()); let target_file = image_name + "." + file_type; let target_path = target_dir.join(target_file);