Skip to content

Commit 703d8da

Browse files
feat: allow enabling http1/http2 individually for server::auto (#80)
1 parent 32166f6 commit 703d8da

File tree

3 files changed

+130
-19
lines changed

3 files changed

+130
-19
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@ authors = ["Sean McArthur <[email protected]>"]
1111
keywords = ["http", "hyper", "hyperium"]
1212
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
1313
edition = "2021"
14+
resolver = "2"
1415

1516
[package.metadata.docs.rs]
1617
features = ["full"]
1718
rustdoc-args = ["--cfg", "docsrs"]
1819

1920
[dependencies]
2021
hyper = "1.1.0"
21-
futures-channel = "0.3"
2222
futures-util = { version = "0.3.16", default-features = false }
2323
http = "1.0"
2424
http-body = "1.0.0"
2525
bytes = "1"
2626
pin-project-lite = "0.2.4"
27+
futures-channel = { version = "0.3", optional = true }
2728
socket2 = { version = "0.5", optional = true, features = ["all"] }
28-
tracing = { version = "0.1", default-features = false, features = ["std"] }
29+
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
2930
tokio = { version = "1", optional = true, features = ["net", "rt", "time"] }
3031
tower-service ={ version = "0.3", optional = true }
3132
tower = { version = "0.4.1", optional = true, features = ["make", "util"] }
@@ -56,7 +57,7 @@ full = [
5657
"tokio",
5758
]
5859

59-
client = ["hyper/client", "dep:tower", "dep:tower-service"]
60+
client = ["hyper/client", "dep:tracing", "dep:futures-channel", "dep:tower", "dep:tower-service"]
6061
client-legacy = ["client"]
6162

6263
server = ["hyper/server"]

0 commit comments

Comments
 (0)