feat(server): Make the server code an optional feature (#2334)
cc #2223 BREAKING CHANGE: The HTTP server code is now an optional feature. To enable the server, add `features = ["server"]` to the dependency in your `Cargo.toml`.
This commit is contained in:
@@ -75,6 +75,7 @@ default = [
|
||||
"runtime",
|
||||
"stream",
|
||||
"client",
|
||||
"server",
|
||||
"http1",
|
||||
"http2",
|
||||
]
|
||||
@@ -82,6 +83,7 @@ full = [
|
||||
"client",
|
||||
"http1",
|
||||
"http2",
|
||||
"server",
|
||||
"stream",
|
||||
"runtime",
|
||||
]
|
||||
@@ -100,7 +102,9 @@ tcp = [
|
||||
http1 = []
|
||||
http2 = ["h2"]
|
||||
|
||||
# Client/Server
|
||||
client = []
|
||||
server = []
|
||||
|
||||
# `impl Stream` for things
|
||||
stream = []
|
||||
|
||||
Reference in New Issue
Block a user