Enable socks proxy support in ureq (#15597)

# Description
Enable socks-proxy feature in ureq.
This allows use of socks protocol in proxy env variables when using
nushell http client.
eg. to use a socks5 proxy on localhost
``` 
ALL_PROXY=socks5://localhost:8080 http get ...
```
# User-Facing Changes

None
# Tests + Formatting

# After Submitting
This commit is contained in:
scarlet-storm 2025-04-21 05:24:47 +05:30 committed by GitHub
parent 5c59611083
commit b5b63d2bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

12
Cargo.lock generated
View File

@ -6797,6 +6797,17 @@ dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "socks"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0c3dbbd9ae980613c6dd8e28a9407b50509d3803b57624d5dfe8315218cd58b"
dependencies = [
"byteorder",
"libc",
"winapi",
]
[[package]]
name = "sqlparser"
version = "0.53.0"
@ -7627,6 +7638,7 @@ dependencies = [
"once_cell",
"serde",
"serde_json",
"socks",
"url",
]

View File

@ -168,7 +168,7 @@ update-informer = { version = "1.2.0", default-features = false, features = ["gi
umask = "2.1"
unicode-segmentation = "1.12"
unicode-width = "0.2"
ureq = { version = "2.12", default-features = false }
ureq = { version = "2.12", default-features = false, features = ["socks-proxy"] }
url = "2.2"
uu_cp = "0.0.30"
uu_mkdir = "0.0.30"