diff --git a/Cargo.lock b/Cargo.lock index 0d3d17eef..10dae7210 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index c0779643f..6e1970498 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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]