From 5bcb75bc0fd31b730d0a2dce78252f2914a1a874 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Apr 2026 15:26:19 +0900 Subject: [PATCH] Bump uuid from 1.22.0 to 1.23.0 (#7565) * Bump uuid from 1.22.0 to 1.23.0 Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.22.0 to 1.23.0. - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/v1.22.0...v1.23.0) --- updated-dependencies: - dependency-name: uuid dependency-version: 1.23.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix CI for uuid 1.23.0 Context deprecation Agent-Logs-Url: https://github.com/RustPython/RustPython/sessions/bec0d567-f41e-407f-bf99-0463ca555f74 Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> --- Cargo.lock | 4 ++-- crates/stdlib/Cargo.toml | 2 +- crates/stdlib/src/uuid.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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();