Skip to content

Commit 3ac9187

Browse files
committedJan 28, 2025
wip: proxy-env
1 parent 5f055e3 commit 3ac9187

File tree

4 files changed

+479
-4
lines changed

4 files changed

+479
-4
lines changed
 

‎Cargo.toml

+8-4
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ features = ["full"]
1818
rustdoc-args = ["--cfg", "docsrs"]
1919

2020
[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 }
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.4.0"
28+
ipnet = { version = "2.9", optional = true }
29+
percent-encoding = { version = "2.3", optional = true }
2630
pin-project-lite = "0.2.4"
27-
futures-channel = { version = "0.3", optional = true }
2831
socket2 = { version = "0.5", optional = true, features = ["all"] }
2932
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
3033
tokio = { version = "1", optional = true, default-features = false }
@@ -42,7 +45,7 @@ pretty_env_logger = "0.5"
4245
pnet_datalink = "0.35.0"
4346

4447
[features]
45-
default = []
48+
default = ["client-proxy-env"]
4649

4750
# Shorthand to enable everything
4851
full = [
@@ -59,6 +62,7 @@ full = [
5962

6063
client = ["hyper/client", "dep:tracing", "dep:futures-channel", "dep:tower-service"]
6164
client-legacy = ["client", "dep:socket2", "tokio/sync"]
65+
client-proxy-env = ["client", "dep:base64", "dep:ipnet", "dep:percent-encoding"]
6266

6367
server = ["hyper/server"]
6468
server-auto = ["server", "http1", "http2"]

‎src/client/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
/// Legacy implementations of `connect` module and `Client`
44
#[cfg(feature = "client-legacy")]
55
pub mod legacy;
6+
7+
// for now, no others features use this mod
8+
//#[cfg(feature = "client-proxy-env")]
9+
pub mod proxy;

0 commit comments

Comments
 (0)
Please sign in to comment.