From c7416a1a2c87f578883402bc023b8d5ef7111752 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 22 Sep 2026 06:03:58 -0300 Subject: [PATCH] refactor(http)!: remove deprecated macos-system-configuration feature (#3601) * refactor(http)!: remove deprecated macos-system-configuration feature Use `system-proxy` (enabled by default) instead. * chore(upload): enable reqwest's system-proxy feature instead of the deprecated alias --------- Co-authored-by: Lucas Nogueira --- .changes/http-remove-macos-system-configuration.md | 5 +++++ .changes/upload-system-proxy.md | 5 +++++ plugins/http/Cargo.toml | 2 -- plugins/http/src/lib.rs | 1 - plugins/upload/Cargo.toml | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changes/http-remove-macos-system-configuration.md create mode 100644 .changes/upload-system-proxy.md diff --git a/.changes/http-remove-macos-system-configuration.md b/.changes/http-remove-macos-system-configuration.md new file mode 100644 index 000000000..80b65cf24 --- /dev/null +++ b/.changes/http-remove-macos-system-configuration.md @@ -0,0 +1,5 @@ +--- +"http": major +--- + +**Breaking:** Removed the deprecated `macos-system-configuration` Cargo feature. Use `system-proxy` (enabled by default) instead. diff --git a/.changes/upload-system-proxy.md b/.changes/upload-system-proxy.md new file mode 100644 index 000000000..9928f049b --- /dev/null +++ b/.changes/upload-system-proxy.md @@ -0,0 +1,5 @@ +--- +"upload": patch +--- + +Enable reqwest's `system-proxy` feature instead of the deprecated `macos-system-configuration` alias. diff --git a/plugins/http/Cargo.toml b/plugins/http/Cargo.toml index 821bc90d2..2c2922f40 100644 --- a/plugins/http/Cargo.toml +++ b/plugins/http/Cargo.toml @@ -71,8 +71,6 @@ trust-dns = ["reqwest/trust-dns"] socks = ["reqwest/socks"] http2 = ["reqwest/http2"] charset = ["reqwest/charset"] -# Deprecated, switch to system-proxy -macos-system-configuration = ["reqwest/macos-system-configuration"] system-proxy = ["reqwest/system-proxy"] unsafe-headers = [] diff --git a/plugins/http/src/lib.rs b/plugins/http/src/lib.rs index 4d19b0048..818493e4b 100644 --- a/plugins/http/src/lib.rs +++ b/plugins/http/src/lib.rs @@ -35,7 +35,6 @@ //! - **socks**: Provides SOCKS5 proxy support. //! - **trust-dns**: Enables a trust-dns/Hickory DNS async resolver instead of the default threadpool using //! getaddrinfo. -//! - **macos-system-configuration** *(deprecated, use `system-proxy` instead)*: Use Windows and macOS system proxy settings automatically. //! - **system-proxy** *(enabled by default)*: Use Windows and macOS system proxy settings automatically. //! //! ### tauri-plugin-http features diff --git a/plugins/upload/Cargo.toml b/plugins/upload/Cargo.toml index 8ec35cc5d..dcb265ce2 100644 --- a/plugins/upload/Cargo.toml +++ b/plugins/upload/Cargo.toml @@ -36,7 +36,7 @@ thiserror = { workspace = true } tokio = { version = "1", features = ["fs"] } tokio-util = { version = "0.7", features = ["codec"] } reqwest = { version = "0.12", default-features = false, features = [ - "macos-system-configuration", + "system-proxy", "json", "stream", ] }