From f8439eb4b93e4253d4a5f0caeaca65e7e27a9aa8 Mon Sep 17 00:00:00 2001 From: Zyy <39424122+zyycn@users.noreply.github.com> Date: Mon, 5 Oct 2026 13:47:14 +0800 Subject: [PATCH] chore(deps): upgrade syn and prettyplease together (#349) Co-authored-by: Codex --- backend/Cargo.lock | 8 ++++---- backend/crates/gateway-admin/Cargo.toml | 4 ++-- .../gateway-admin/tests/use_case/service_contract.rs | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 4b134bf91..e5b3621e8 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1689,7 +1689,7 @@ dependencies = [ "serde_json", "sha2 0.11.0", "subtle", - "syn 2.0.119", + "syn 3.0.6", "tempfile", "thiserror", "tokio", @@ -3171,12 +3171,12 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "prettyplease" -version = "0.2.37" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0" dependencies = [ "proc-macro2", - "syn 2.0.119", + "syn 3.0.6", ] [[package]] diff --git a/backend/crates/gateway-admin/Cargo.toml b/backend/crates/gateway-admin/Cargo.toml index 6a62f26ab..f62f250b9 100644 --- a/backend/crates/gateway-admin/Cargo.toml +++ b/backend/crates/gateway-admin/Cargo.toml @@ -36,9 +36,9 @@ chrono-tz = "0.10" tokio = { version = "1.52", features = ["rt", "time", "macros", "sync"] } [dev-dependencies] -prettyplease = "0.2" +prettyplease = "0.3" quote = "1" -syn = { version = "2", features = ["full", "visit-mut"] } +syn = { version = "3", features = ["full", "visit-mut"] } tempfile = "3" tokio = { version = "1.52.3", default-features = false, features = ["macros", "rt", "test-util"] } diff --git a/backend/crates/gateway-admin/tests/use_case/service_contract.rs b/backend/crates/gateway-admin/tests/use_case/service_contract.rs index 76c5cf3a2..4548426ce 100644 --- a/backend/crates/gateway-admin/tests/use_case/service_contract.rs +++ b/backend/crates/gateway-admin/tests/use_case/service_contract.rs @@ -59,6 +59,7 @@ impl VisitMut for WireTypes { "DateTime" | "Tz" | "TokenPrice" | "AdminApiKey" => parse_quote!(String), "OpaqueProviderData" => parse_quote!(serde_json::Map), _ => Type::Path(syn::TypePath { + attrs: std::mem::take(&mut path.attrs), qself: None, path: last.into(), }),