mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
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 <lucas@crabnebula.dev>
This commit is contained in:
co-authored by
Lucas Nogueira
parent
34a06e7f60
commit
c7416a1a2c
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http": major
|
||||
---
|
||||
|
||||
**Breaking:** Removed the deprecated `macos-system-configuration` Cargo feature. Use `system-proxy` (enabled by default) instead.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"upload": patch
|
||||
---
|
||||
|
||||
Enable reqwest's `system-proxy` feature instead of the deprecated `macos-system-configuration` alias.
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
] }
|
||||
|
||||
Reference in New Issue
Block a user