From c6ef67718ee888551df8aa5176c3f4849883f35a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 6 Dec 2026 02:50:35 +0000 Subject: [PATCH] chore(deps): update cargo dependencies (#8834) * chore(deps): update cargo dependencies * fix(network): switch the rustls provider to aws-lc-rs rustls 0.23.48 deprecates `rustls::crypto::ring::default_provider()` for lacking post-quantum support, which fails `cargo clippy-all` (`-D warnings`) on every platform, and it offers no non-deprecated ring provider constructor. aws-lc-rs is already compiled in through reqwest, so the delay-test connector and the static-webpki-roots fallback gain no new build requirement. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com> --- Cargo.lock | 124 ++++++++++----------- Cargo.toml | 2 +- crates/clash-verge-subscription/Cargo.toml | 4 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/utils/network.rs | 3 +- 5 files changed, 68 insertions(+), 67 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4946b2bfd..f3fc593b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -381,7 +381,7 @@ dependencies = [ "dirs 6.0.0", "os_info", "smappservice-rs", - "thiserror 2.0.20", + "thiserror 2.0.21", "windows-registry", "windows-result 0.4.1", ] @@ -664,7 +664,7 @@ dependencies = [ "tap", "temporal_rs", "thin-vec", - "thiserror 2.0.20", + "thiserror 2.0.21", "time", "timezone_provider", "xsum", @@ -928,7 +928,7 @@ dependencies = [ "semver 1.0.28", "serde", "serde_json", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -1194,7 +1194,7 @@ dependencies = [ name = "clash-verge-backup-archive" version = "0.1.0" dependencies = [ - "thiserror 2.0.20", + "thiserror 2.0.21", "zip", ] @@ -1217,7 +1217,7 @@ version = "0.1.0" dependencies = [ "criterion", "parking_lot 0.13.0", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", ] @@ -1244,7 +1244,7 @@ dependencies = [ "flexi_logger", "log", "parking_lot 0.13.0", - "thiserror 2.0.20", + "thiserror 2.0.21", "tracing-estuary", ] @@ -1271,7 +1271,7 @@ dependencies = [ "serde_json", "serde_yaml_ng", "specta", - "thiserror 2.0.20", + "thiserror 2.0.21", "tristr", ] @@ -1306,7 +1306,7 @@ dependencies = [ "log", "serde_yaml_ng", "sha2 0.11.2", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tristr", ] @@ -1327,7 +1327,7 @@ dependencies = [ "http", "percent-encoding", "serde_yaml_ng", - "thiserror 2.0.20", + "thiserror 2.0.21", "url", ] @@ -2058,7 +2058,7 @@ dependencies = [ "log", "prost-types", "ringbuf", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tokio-stream", "tonic", @@ -2556,7 +2556,7 @@ dependencies = [ "log", "nu-ansi-term", "regex", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -2616,9 +2616,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -3013,7 +3013,7 @@ dependencies = [ "objc2-app-kit", "once_cell", "serde", - "thiserror 2.0.20", + "thiserror 2.0.21", "windows-sys 0.59.0", "x11rb", "xkeysym", @@ -3286,9 +3286,9 @@ dependencies = [ [[package]] name = "http" -version = "1.5.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +checksum = "a07dc2d082802d1782faa5b3c8ac252f3a4fc89f51e76c3f37dc2d1a5b857c05" dependencies = [ "bytes", "itoa", @@ -3883,7 +3883,7 @@ dependencies = [ "jni-sys 0.4.1", "log", "simd_cesu8", - "thiserror 2.0.20", + "thiserror 2.0.21", "walkdir", "windows-link 0.2.1", ] @@ -3959,7 +3959,7 @@ dependencies = [ "jsonptr", "serde", "serde_json", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -4010,7 +4010,7 @@ dependencies = [ "rand 0.10.2", "serde", "serde_json", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tokio-stream", "tokio-util", @@ -4399,7 +4399,7 @@ dependencies = [ "objc2-foundation", "png", "serde", - "thiserror 2.0.20", + "thiserror 2.0.21", "windows-sys 0.61.2", ] @@ -4476,7 +4476,7 @@ dependencies = [ "cc", "libc", "serde", - "thiserror 2.0.20", + "thiserror 2.0.21", "winapi", ] @@ -5058,7 +5058,7 @@ dependencies = [ "objc2-osa-kit", "serde", "serde_json", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -5625,7 +5625,7 @@ dependencies = [ "rustc-hash", "rustls", "socket2", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tracing", "web-time", @@ -5648,7 +5648,7 @@ dependencies = [ "rustls", "rustls-pki-types", "slab", - "thiserror 2.0.20", + "thiserror 2.0.21", "tinyvec", "tracing", "web-time", @@ -5846,7 +5846,7 @@ checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" dependencies = [ "getrandom 0.2.17", "libredox", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -6209,9 +6209,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.47" +version = "0.23.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac0e747c10d93d873fd4c50b26ef47ad92d1bfb48f6922003bb514070f6e88c" +checksum = "86c8de8f13bac4bb046743409c751e2343621c0293a805c143ede57c5c95c3f8" dependencies = [ "aws-lc-rs", "log", @@ -6871,7 +6871,7 @@ dependencies = [ "objc2", "objc2-foundation", "objc2-service-management", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -7166,7 +7166,7 @@ dependencies = [ "log", "serde", "system-configuration", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "url", "which 8.0.5", @@ -7356,7 +7356,7 @@ dependencies = [ "tauri-runtime", "tauri-runtime-wry", "tauri-utils", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tracing", "tray-icon", @@ -7406,7 +7406,7 @@ dependencies = [ "sha2 0.11.2", "syn 2.0.119", "tauri-utils", - "thiserror 2.0.20", + "thiserror 2.0.21", "uuid", "walkdir", ] @@ -7452,7 +7452,7 @@ dependencies = [ "serde_json", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -7481,7 +7481,7 @@ dependencies = [ "serde_json", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -7498,7 +7498,7 @@ dependencies = [ "tauri", "tauri-plugin", "tauri-utils", - "thiserror 2.0.20", + "thiserror 2.0.21", "tracing", "url", "windows-registry", @@ -7546,7 +7546,7 @@ dependencies = [ "tauri", "tauri-plugin", "tauri-plugin-fs", - "thiserror 2.0.20", + "thiserror 2.0.21", "url", ] @@ -7569,7 +7569,7 @@ dependencies = [ "tauri", "tauri-plugin", "tauri-utils", - "thiserror 2.0.20", + "thiserror 2.0.21", "toml 1.2.1+spec-1.1.0", "url", ] @@ -7586,7 +7586,7 @@ dependencies = [ "serde_json", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -7608,7 +7608,7 @@ dependencies = [ "tauri", "tauri-plugin", "tauri-plugin-fs", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "url", "urlpattern", @@ -7631,7 +7631,7 @@ dependencies = [ "serde_json", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tokio-tungstenite", "ts-rs", @@ -7653,7 +7653,7 @@ dependencies = [ "serde_repr", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", "time", "url", "zbus", @@ -7675,7 +7675,7 @@ dependencies = [ "serde_json", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", "url", "windows 0.62.2", "zbus", @@ -7699,7 +7699,7 @@ dependencies = [ "shared_child", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "windows-sys 0.60.2", ] @@ -7730,7 +7730,7 @@ dependencies = [ "tauri", "tauri-plugin", "tempfile", - "thiserror 2.0.20", + "thiserror 2.0.21", "time", "tokio", "url", @@ -7761,7 +7761,7 @@ dependencies = [ "tauri", "tauri-plugin", "tempfile", - "thiserror 2.0.20", + "thiserror 2.0.21", "tokio", "tracing", "uuid", @@ -7783,7 +7783,7 @@ dependencies = [ "serde_json", "tauri", "tauri-plugin", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -7804,7 +7804,7 @@ dependencies = [ "serde", "serde_json", "tauri-utils", - "thiserror 2.0.20", + "thiserror 2.0.21", "url", "webkit2gtk", "webview2-com", @@ -7853,7 +7853,7 @@ dependencies = [ "specta-util", "tauri", "tauri-specta-macros", - "thiserror 2.0.20", + "thiserror 2.0.21", ] [[package]] @@ -7899,7 +7899,7 @@ dependencies = [ "serde_json", "serde_with", "swift-rs", - "thiserror 2.0.20", + "thiserror 2.0.21", "toml 1.2.1+spec-1.1.0", "url", "urlpattern", @@ -7924,7 +7924,7 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed071c670382e85fc2f48ae706492d8c338f4f89bf72520d32f8abfe880aade" dependencies = [ - "thiserror 2.0.20", + "thiserror 2.0.21", "windows 0.61.3", "windows-version", ] @@ -8048,11 +8048,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.20" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" dependencies = [ - "thiserror-impl 2.0.20", + "thiserror-impl 2.0.21", ] [[package]] @@ -8068,9 +8068,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.20" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", @@ -8582,7 +8582,7 @@ dependencies = [ "objc2-foundation", "png", "serde", - "thiserror 2.0.20", + "thiserror 2.0.21", "windows-sys 0.61.2", ] @@ -8636,7 +8636,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8" dependencies = [ "serde_json", - "thiserror 2.0.20", + "thiserror 2.0.21", "ts-rs-macros", ] @@ -8665,7 +8665,7 @@ dependencies = [ "log", "rand 0.9.5", "sha1 0.10.7", - "thiserror 2.0.20", + "thiserror 2.0.21", "utf-8", ] @@ -8758,9 +8758,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -9198,7 +9198,7 @@ version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb" dependencies = [ - "thiserror 2.0.20", + "thiserror 2.0.21", "windows 0.62.2", "windows-core 0.62.2", ] @@ -10062,7 +10062,7 @@ dependencies = [ "log", "os_pipe", "rustix 1.1.4", - "thiserror 2.0.20", + "thiserror 2.0.21", "tree_magic_mini", "wayland-backend", "wayland-client", @@ -10114,7 +10114,7 @@ dependencies = [ "sha2 0.11.2", "soup3", "tao-macros", - "thiserror 2.0.20", + "thiserror 2.0.21", "tracing", "url", "webkit2gtk", diff --git a/Cargo.toml b/Cargo.toml index db9c4ed0b..cc58db004 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ tauri = { version = "2.13.0" } tauri-plugin-clipboard-manager = "2.5.0" parking_lot = "0.13.0" anyhow = "1.0.105" -thiserror = "2.0.20" +thiserror = "2.0.21" zip = "9.9.0" boa_engine = "0.22.0" futures = "0.3.34" diff --git a/crates/clash-verge-subscription/Cargo.toml b/crates/clash-verge-subscription/Cargo.toml index ed4a95730..2eb137ed7 100644 --- a/crates/clash-verge-subscription/Cargo.toml +++ b/crates/clash-verge-subscription/Cargo.toml @@ -5,10 +5,10 @@ edition = "2024" [dependencies] thiserror = { workspace = true } -http = "1" +http = "1.6.0" percent-encoding = "2.3.2" serde_yaml_ng = { workspace = true } -url = "2.5" +url = "2.5.9" [lints] workspace = true diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 526b6efb3..b8208613a 100755 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -100,7 +100,7 @@ async-trait = "0.1.92" clash_verge_service_ipc = { workspace = true, features = ["client"] } arc-swap = "1.9.5" tokio-rustls = "0.26.6" -rustls = { version = "0.23.47", features = ["ring"] } +rustls = { version = "0.23.48", features = ["aws_lc_rs"] } webpki-roots = "1.0.12" dark-light = "3.0.0" bytes = "1.12.2" diff --git a/src-tauri/src/utils/network.rs b/src-tauri/src/utils/network.rs index a6c70850c..8574bdf97 100644 --- a/src-tauri/src/utils/network.rs +++ b/src-tauri/src/utils/network.rs @@ -49,9 +49,10 @@ enum TlsRootMode { } /// ALPN stays unset: raw TLS connectors offer none, while reqwest needs the h2 offer. +/// The provider is passed explicitly: both rustls providers are compiled in, so the process default may vary. pub(crate) fn build_webpki_rooted_tls_config() -> Result { let root_store = rustls::RootCertStore::from_iter(webpki_roots::TLS_SERVER_ROOTS.iter().cloned()); - let config = rustls::ClientConfig::builder_with_provider(Arc::new(rustls::crypto::ring::default_provider())) + let config = rustls::ClientConfig::builder_with_provider(Arc::new(rustls::crypto::aws_lc_rs::default_provider())) .with_safe_default_protocol_versions()? .with_root_certificates(root_store) .with_no_client_auth();