Skip to content

Commit f6b4ccd

Browse files
committed
Match hyperlocal features with hyper features
1 parent 3f3a2e4 commit f6b4ccd

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

Cargo.toml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,34 @@ readme = "README.md"
1111
edition = "2018"
1212

1313
[dependencies]
14+
futures-util = "0.3"
1415
hex = "0.4"
15-
hyper = { version = "0.14", features = ["server", "client", "http1", "runtime"] }
16-
tokio = { version = "1.0", features = ["rt-multi-thread", "net"] }
16+
hyper = "0.14"
17+
tokio = { version = "1.0", features = ["net"] }
1718
pin-project-lite = "0.2"
18-
futures-util = "0.3"
1919

2020
[dev-dependencies]
21-
tokio = { version = "1.0", features = ["rt-multi-thread", "net", "macros", "io-std", "io-util"] }
21+
tokio = { version = "1.0", features = ["io-std", "io-util", "macros", "rt-multi-thread"] }
2222

2323
[features]
24-
client = []
25-
server = []
26-
default = ["client", "server"]
24+
default = []
25+
client = [
26+
"hyper/client",
27+
"hyper/http1",
28+
]
29+
server = [
30+
"hyper/http1",
31+
"hyper/server"
32+
]
33+
34+
[[example]]
35+
name = "client"
36+
required-features = ["client", "hyper/runtime"]
37+
38+
[[example]]
39+
name = "server"
40+
required-features = ["server", "hyper/runtime"]
41+
42+
[[test]]
43+
name = "server_client"
44+
required-features = ["client", "server", "hyper/runtime"]

0 commit comments

Comments
 (0)