Explorar o código

add proxy feature

m00nwtchr hai 10 meses
pai
achega
89d367ff99
Modificáronse 2 ficheiros con 5 adicións e 5 borrados
  1. 3 3
      Cargo.lock
  2. 2 2
      Cargo.toml

+ 3 - 3
Cargo.lock

@@ -4035,14 +4035,14 @@ dependencies = [
 
 [[package]]
 name = "tokio-socks"
-version = "0.5.1"
+version = "0.5.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51165dfa029d2a65969413a6cc96f354b86b464498702f174a4efa13608fd8c0"
+checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f"
 dependencies = [
  "either",
  "futures-util",
  "thiserror",
- "tokio 1.36.0",
+ "tokio 1.38.0",
 ]
 
 [[package]]

+ 2 - 2
Cargo.toml

@@ -17,7 +17,6 @@ reqwest = { version = "0.12.5", default-features = false, features = [
     "rustls-tls",
     "brotli",
     "gzip",
-	  "socks",
     "http2",
 ] }
 tokio = { version = "1.32.0", features = [
@@ -179,7 +178,7 @@ opt-level = "z"
 
 [features]
 use-synonyms-search = ["thesaurus/static"]
-default = ["memory-cache"]
+default = ["memory-cache", "socks"]
 dhat-heap = ["dep:dhat"]
 memory-cache = ["dep:mini-moka"]
 redis-cache = ["dep:redis", "dep:base64"]
@@ -188,3 +187,4 @@ encrypt-cache-results = ["dep:chacha20poly1305", "dep:chacha20"]
 cec-cache-results = ["compress-cache-results", "encrypt-cache-results"]
 experimental-io-uring = ["actix-web/experimental-io-uring"]
 use-non-static-synonyms-search = ["thesaurus"]
+socks = ["reqwest/socks"]