Skip to content

Commit 7ac6dfc

Browse files
committed
move tokio/net feature to client to make TokioIo can used in wasm
1 parent 24714a3 commit 7ac6dfc

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

Cargo.toml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ repository = "https://github.com/hyperium/hyper-util"
99
license = "MIT"
1010
authors = ["Sean McArthur <[email protected]>"]
1111
keywords = ["http", "hyper", "hyperium"]
12-
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
12+
categories = [
13+
"network-programming",
14+
"web-programming::http-client",
15+
"web-programming::http-server",
16+
]
1317
edition = "2021"
1418
rust-version = "1.63"
1519

@@ -31,14 +35,18 @@ libc = { version = "0.2", optional = true }
3135
percent-encoding = { version = "2.3", optional = true }
3236
pin-project-lite = "0.2.4"
3337
socket2 = { version = ">=0.5.9, <0.7", optional = true, features = ["all"] }
34-
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
35-
tokio = { version = "1", optional = true, default-features = false }
38+
tracing = { version = "0.1", default-features = false, features = [
39+
"std",
40+
], optional = true }
41+
tokio = { version = "1", optional = true, default-features = false }
3642
tower-service = { version = "0.3", optional = true }
3743

3844
[dev-dependencies]
3945
hyper = { version = "1.4.0", features = ["full"] }
4046
bytes = "1"
41-
futures-util = { version = "0.3.16", default-features = false, features = ["alloc"] }
47+
futures-util = { version = "0.3.16", default-features = false, features = [
48+
"alloc",
49+
] }
4250
http-body-util = "0.1.0"
4351
tokio = { version = "1", features = ["macros", "test-util", "signal"] }
4452
tokio-test = "0.4"
@@ -72,8 +80,20 @@ full = [
7280
"tracing",
7381
]
7482

75-
client = ["hyper/client", "dep:tracing", "dep:futures-channel", "dep:tower-service"]
76-
client-legacy = ["client", "dep:socket2", "tokio/sync", "dep:libc", "dep:futures-util"]
83+
client = [
84+
"hyper/client",
85+
"tokio/net",
86+
"dep:tracing",
87+
"dep:futures-channel",
88+
"dep:tower-service",
89+
]
90+
client-legacy = [
91+
"client",
92+
"dep:socket2",
93+
"tokio/sync",
94+
"dep:libc",
95+
"dep:futures-util",
96+
]
7797
client-proxy = ["client", "dep:base64", "dep:ipnet", "dep:percent-encoding"]
7898
client-proxy-system = ["dep:system-configuration", "dep:windows-registry"]
7999

@@ -86,7 +106,7 @@ service = ["dep:tower-service"]
86106
http1 = ["hyper/http1"]
87107
http2 = ["hyper/http2"]
88108

89-
tokio = ["dep:tokio", "tokio/net", "tokio/rt", "tokio/time"]
109+
tokio = ["dep:tokio", "tokio/rt", "tokio/time"]
90110

91111
tracing = ["dep:tracing"]
92112

0 commit comments

Comments
 (0)