Skip to content

Commit

Permalink
feat: allow enabling http1/http2 individually for server::auto (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez authored Jan 30, 2024
1 parent 32166f6 commit 703d8da
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 19 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ authors = ["Sean McArthur <[email protected]>"]
keywords = ["http", "hyper", "hyperium"]
categories = ["network-programming", "web-programming::http-client", "web-programming::http-server"]
edition = "2021"
resolver = "2"

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

[dependencies]
hyper = "1.1.0"
futures-channel = "0.3"
futures-util = { version = "0.3.16", default-features = false }
http = "1.0"
http-body = "1.0.0"
bytes = "1"
pin-project-lite = "0.2.4"
futures-channel = { version = "0.3", optional = true }
socket2 = { version = "0.5", optional = true, features = ["all"] }
tracing = { version = "0.1", default-features = false, features = ["std"] }
tracing = { version = "0.1", default-features = false, features = ["std"], optional = true }
tokio = { version = "1", optional = true, features = ["net", "rt", "time"] }
tower-service ={ version = "0.3", optional = true }
tower = { version = "0.4.1", optional = true, features = ["make", "util"] }
Expand Down Expand Up @@ -56,7 +57,7 @@ full = [
"tokio",
]

client = ["hyper/client", "dep:tower", "dep:tower-service"]
client = ["hyper/client", "dep:tracing", "dep:futures-channel", "dep:tower", "dep:tower-service"]
client-legacy = ["client"]

server = ["hyper/server"]
Expand Down
Loading

0 comments on commit 703d8da

Please sign in to comment.