diff --git a/Cargo.lock b/Cargo.lock index 960a80efe..b28a7a8be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4341,9 +4341,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.22.0" +version = "1.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37" +checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9" dependencies = [ "atomic", "js-sys", diff --git a/crates/stdlib/Cargo.toml b/crates/stdlib/Cargo.toml index 662b42aae..ec871f609 100644 --- a/crates/stdlib/Cargo.toml +++ b/crates/stdlib/Cargo.toml @@ -99,7 +99,7 @@ chrono.workspace = true # uuid [target.'cfg(not(any(target_os = "ios", target_os = "android", target_os = "windows", target_arch = "wasm32", target_os = "redox")))'.dependencies] mac_address = "1.1.3" -uuid = { version = "1.22.0", features = ["v1"] } +uuid = { version = "1.23.0", features = ["v1"] } [target.'cfg(all(unix, not(target_os = "redox"), not(target_os = "ios")))'.dependencies] termios = "0.3.3" diff --git a/crates/stdlib/src/uuid.rs b/crates/stdlib/src/uuid.rs index 3bc01610d..441216836 100644 --- a/crates/stdlib/src/uuid.rs +++ b/crates/stdlib/src/uuid.rs @@ -5,7 +5,7 @@ mod _uuid { use crate::{builtins::PyNone, vm::VirtualMachine}; use mac_address::get_mac_address; use std::sync::OnceLock; - use uuid::{Context, Uuid, timestamp::Timestamp}; + use uuid::{ContextV1, Uuid, timestamp::Timestamp}; fn get_node_id() -> [u8; 6] { match get_mac_address() { @@ -17,7 +17,7 @@ mod _uuid { #[pyfunction] fn generate_time_safe() -> (Vec, PyNone) { - static CONTEXT: Context = Context::new(0); + static CONTEXT: ContextV1 = ContextV1::new(0); let ts = Timestamp::now(&CONTEXT); static NODE_ID: OnceLock<[u8; 6]> = OnceLock::new();