Opt-in SOCKS5 proxy support

This commit is contained in:
Quentin Gliech
2024-10-28 11:25:53 +01:00
parent cc99fdd3f2
commit f7ea9ca3df
2 changed files with 14 additions and 1 deletions

13
Cargo.lock generated
View File

@@ -5033,6 +5033,7 @@ dependencies = [
"sync_wrapper 1.0.1",
"tokio",
"tokio-rustls",
"tokio-socks",
"tower-service",
"url",
"wasm-bindgen",
@@ -6273,6 +6274,18 @@ dependencies = [
"tokio",
]
[[package]]
name = "tokio-socks"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f"
dependencies = [
"either",
"futures-util",
"thiserror",
"tokio",
]
[[package]]
name = "tokio-stream"
version = "0.1.16"

View File

@@ -190,7 +190,7 @@ version = "0.8.5"
[workspace.dependencies.reqwest]
version = "0.12.8"
default-features = false
features = ["http2", "rustls-tls-manual-roots", "charset", "json"]
features = ["http2", "rustls-tls-manual-roots", "charset", "json", "socks"]
# TLS stack
[workspace.dependencies.rustls]