feat(http): add system-proxy feature (#3528)

* feat(http): add `system-proxy` feature

* require reqwest 0.12.16
This commit is contained in:
Tony
2026-08-04 19:51:32 +08:00
committed by GitHub
parent 2371be839f
commit 19fb3926fd
2 changed files with 11 additions and 8 deletions
+5 -8
View File
@@ -41,7 +41,8 @@ tauri-plugin-fs = { path = "../fs", version = "2.5.1" }
urlpattern = "0.3"
regex = "1"
http = "1"
reqwest = { version = "0.12", default-features = false }
# 0.12.16 is when `system-proxy` was added
reqwest = { version = "0.12.16", default-features = false }
url = { workspace = true }
data-url = "0.3"
cookie_store = { version = "0.22", optional = true, features = ["serde"] }
@@ -49,13 +50,7 @@ bytes = { version = "1.9", optional = true }
tracing = { workspace = true, optional = true }
[features]
default = [
"rustls-tls",
"http2",
"charset",
"macos-system-configuration",
"cookies",
]
default = ["rustls-tls", "http2", "charset", "system-proxy", "cookies"]
multipart = ["reqwest/multipart"]
json = ["reqwest/json"]
stream = ["reqwest/stream"]
@@ -76,7 +71,9 @@ 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 = []
tracing = ["dep:tracing"]
dangerous-settings = []