re-add the "socks" feature (using tokio-socks) (#769)

The "socks" feature has been removed for a while now, the optional
dependency on the "socks" crate commented out.

The code for actually providing the socks feature was, however, still
mostly present, if a bit out of date.

This commit re-adds the socks feature using the tokio-socks (instead of
socks) crate.

Closes #620
This commit is contained in:
r-arias
2020-01-09 20:25:26 +00:00
committed by Sean McArthur
parent 6004623784
commit 20d50daa8b
6 changed files with 100 additions and 43 deletions

View File

@@ -62,7 +62,8 @@ jobs:
- "feat.: gzip"
- "feat.: json"
- "feat.: stream"
# - "feat.: socks"
- "feat.: socks/default-tls"
- "feat.: socks/rustls-tls"
# - "feat.: trust-dns"
include:
@@ -115,8 +116,10 @@ jobs:
features: "--features json"
- name: "feat.: stream"
features: "--features stream"
# - name: "feat.: socks"
# features: "--features socks"
- name: "feat.: socks/default-tls"
features: "--features socks"
- name: "feat.: socks/rustls-tls"
features: "--features socks,rustls-tls"
# - name: "feat.: trust-dns"
# features: "--features trust-dns"