feat(http1): Make HTTP/1 support an optional feature
cc #2251 BREAKING CHANGE: This puts all HTTP/1 methods and support behind an `http1` cargo feature, which will not be enabled by default. To use HTTP/1, add `features = ["http1"]` to the hyper dependency in your `Cargo.toml`.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
[package]
|
||||
name = "hyper"
|
||||
version = "0.14.0-dev" # don't forget to update html_root_url
|
||||
@@ -76,11 +75,11 @@ default = [
|
||||
"runtime",
|
||||
"stream",
|
||||
|
||||
#"http1",
|
||||
"http1",
|
||||
"http2",
|
||||
]
|
||||
full = [
|
||||
#"http1",
|
||||
"http1",
|
||||
"http2",
|
||||
"stream",
|
||||
"runtime",
|
||||
@@ -97,7 +96,7 @@ tcp = [
|
||||
]
|
||||
|
||||
# HTTP versions
|
||||
#http1 = []
|
||||
http1 = []
|
||||
http2 = ["h2"]
|
||||
|
||||
# `impl Stream` for things
|
||||
|
||||
Reference in New Issue
Block a user