Repository: alloy-rs/svm-rs (language: rust)

Issue:
feature request: enable use socks proxy when svm install
when have some env var:
 export HTTPS_PROXY=socks5://127.0.0.1:2085
 export HTTP_PROXY=socks5://127.0.0.1:2085

can install solc by use socks proxy.

maybe can enable socks proxy by some reqwest setting:
like this : https://github.com/seanmonstar/reqwest/issues/790


Thanks a lot 




Discussion / hints:

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index cfd79d5..a40e02a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1182,6 +1182,7 @@ dependencies = [
  "tokio",
  "tokio-native-tls",
  "tokio-rustls",
+ "tokio-socks",
  "tower-service",
  "url",
  "wasm-bindgen",
@@ -1672,6 +1673,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 = "tower"
 version = "0.4.13"
diff --git a/Cargo.toml b/Cargo.toml
index 072267e..d7db5be 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,4 +22,4 @@ hex = { package = "const-hex", version = "1.10" }
 semver = "1"
 serde = "1"
 serde_json = "1"
-reqwest = { version = "0.12", default-features = false }
+reqwest = { version = "0.12", default-features = false, features = ["socks"] }


Test patch: