@@ -18,13 +18,16 @@ features = ["full"]
18
18
rustdoc-args = [" --cfg" , " docsrs" ]
19
19
20
20
[dependencies ]
21
- hyper = " 1.4.0"
21
+ base64 = { version = " 0.22" , optional = true }
22
+ bytes = " 1.7.1"
23
+ futures-channel = { version = " 0.3" , optional = true }
22
24
futures-util = { version = " 0.3.16" , default-features = false }
23
25
http = " 1.0"
24
26
http-body = " 1.0.0"
25
- bytes = " 1.7.1"
27
+ hyper = " 1.4.0"
28
+ ipnet = { version = " 2.9" , optional = true }
29
+ percent-encoding = { version = " 2.3" , optional = true }
26
30
pin-project-lite = " 0.2.4"
27
- futures-channel = { version = " 0.3" , optional = true }
28
31
socket2 = { version = " 0.5" , optional = true , features = [" all" ] }
29
32
tracing = { version = " 0.1" , default-features = false , features = [" std" ], optional = true }
30
33
tokio = { version = " 1" , optional = true , default-features = false }
@@ -42,7 +45,7 @@ pretty_env_logger = "0.5"
42
45
pnet_datalink = " 0.35.0"
43
46
44
47
[features ]
45
- default = []
48
+ default = [" client-proxy-env " ]
46
49
47
50
# Shorthand to enable everything
48
51
full = [
@@ -59,6 +62,7 @@ full = [
59
62
60
63
client = [" hyper/client" , " dep:tracing" , " dep:futures-channel" , " dep:tower-service" ]
61
64
client-legacy = [" client" , " dep:socket2" , " tokio/sync" ]
65
+ client-proxy-env = [" client" , " dep:base64" , " dep:ipnet" , " dep:percent-encoding" ]
62
66
63
67
server = [" hyper/server" ]
64
68
server-auto = [" server" , " http1" , " http2" ]
0 commit comments