Skip to content

Commit 85d991a

Browse files
authored
Merge branch 'master' into socks-connector
2 parents 2370f34 + 7e74248 commit 85d991a

4 files changed

Lines changed: 866 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@ features = ["full"]
1818
rustdoc-args = ["--cfg", "docsrs"]
1919

2020
[dependencies]
21-
hyper = "1.6.0"
21+
base64 = { version = "0.22", optional = true }
22+
bytes = "1.7.1"
23+
futures-channel = { version = "0.3", optional = true }
2224
futures-util = { version = "0.3.16", default-features = false }
2325
http = "1.0"
2426
http-body = "1.0.0"
25-
bytes = "1.7.1"
27+
hyper = "1.6.0"
28+
ipnet = { version = "2.9", optional = true }
29+
libc = { version = "0.2", optional = true }
30+
percent-encoding = { version = "2.3", optional = true }
2631
pin-project-lite = "0.2.4"
27-
futures-channel = { version = "0.3", optional = true }
2832
socket2 = { version = "0.5.9", optional = true, features = ["all"] }
2933
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
3034
tokio = { version = "1", optional = true, default-features = false }
3135
tower-service = { version = "0.3", optional = true }
32-
libc = { version = "0.2", optional = true }
3336

3437
[dev-dependencies]
3538
hyper = { version = "1.4.0", features = ["full"] }
@@ -42,6 +45,12 @@ pretty_env_logger = "0.5"
4245
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
4346
pnet_datalink = "0.35.0"
4447

48+
[target.'cfg(target_os = "macos")'.dependencies]
49+
system-configuration = { version = "0.6.1", optional = true }
50+
51+
[target.'cfg(windows)'.dependencies]
52+
windows-registry = { version = "0.4", optional = true }
53+
4554
[features]
4655
default = []
4756

@@ -61,6 +70,8 @@ full = [
6170

6271
client = ["hyper/client", "dep:tracing", "dep:futures-channel", "dep:tower-service"]
6372
client-legacy = ["client", "dep:socket2", "tokio/sync", "dep:libc"]
73+
client-proxy = ["client", "dep:base64", "dep:ipnet", "dep:percent-encoding"]
74+
client-proxy-system = ["dep:system-configuration", "dep:windows-registry"]
6475

6576
server = ["hyper/server"]
6677
server-auto = ["server", "http1", "http2"]

src/client/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
/// Legacy implementations of `connect` module and `Client`
44
#[cfg(feature = "client-legacy")]
55
pub mod legacy;
6+
7+
#[cfg(feature = "client-proxy")]
8+
pub mod proxy;

0 commit comments

Comments
 (0)