Browse Source

Enable socks feature in reqwest

m00nwtchr 1 năm trước cách đây
mục cha
commit
f6cf1ce5f5
2 tập tin đã thay đổi với 34 bổ sung0 xóa
  1. 33 0
      Cargo.lock
  2. 1 0
      Cargo.toml

+ 33 - 0
Cargo.lock

@@ -3038,6 +3038,7 @@ dependencies = [
  "system-configuration",
  "tokio 1.36.0",
  "tokio-rustls",
+ "tokio-socks",
  "tokio-util",
  "tower-service",
  "url 2.5.0",
@@ -3675,6 +3676,26 @@ dependencies = [
  "libflate",
 ]
 
+[[package]]
+name = "thiserror"
+version = "1.0.60"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "579e9083ca58dd9dcf91a9923bb9054071b9ebbd800b342194c9feb0ee89fc18"
+dependencies = [
+ "thiserror-impl",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.60"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2470041c06ec3ac1ab38d0356a6119054dedaea53e12fbefc0de730a1c08524"
+dependencies = [
+ "proc-macro2 1.0.78",
+ "quote 1.0.35",
+ "syn 2.0.52",
+]
+
 [[package]]
 name = "thousands"
 version = "0.2.0"
@@ -3879,6 +3900,18 @@ dependencies = [
  "tokio 1.36.0",
 ]
 
+[[package]]
+name = "tokio-socks"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51165dfa029d2a65969413a6cc96f354b86b464498702f174a4efa13608fd8c0"
+dependencies = [
+ "either",
+ "futures-util",
+ "thiserror",
+ "tokio 1.36.0",
+]
+
 [[package]]
 name = "tokio-sync"
 version = "0.1.8"

+ 1 - 0
Cargo.toml

@@ -17,6 +17,7 @@ reqwest = { version = "0.11.24", default-features = false, features = [
     "rustls-tls",
     "brotli",
     "gzip",
+	"socks"
 ] }
 tokio = { version = "1.32.0", features = [
     "rt-multi-thread",