mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Remove h2 from dependencies when http2 feature is off (#2605)
This commit is contained in:
+3
-3
@@ -24,8 +24,8 @@ default = [
|
||||
"tracing",
|
||||
]
|
||||
form = ["dep:serde_urlencoded"]
|
||||
http1 = ["dep:hyper", "hyper?/http1"]
|
||||
http2 = ["dep:hyper", "hyper?/http2"]
|
||||
http1 = ["dep:hyper", "hyper?/http1", "hyper-util?/http1"]
|
||||
http2 = ["dep:hyper", "hyper?/http2", "hyper-util?/http2"]
|
||||
json = ["dep:serde_json", "dep:serde_path_to_error"]
|
||||
macros = ["dep:axum-macros"]
|
||||
matched-path = []
|
||||
@@ -64,7 +64,7 @@ tower-service = "0.3"
|
||||
axum-macros = { path = "../axum-macros", version = "0.4.1", optional = true }
|
||||
base64 = { version = "0.21.0", optional = true }
|
||||
hyper = { version = "1.1.0", optional = true }
|
||||
hyper-util = { version = "0.1.2", features = ["tokio", "server", "server-auto"], optional = true }
|
||||
hyper-util = { version = "0.1.3", features = ["tokio", "server"], optional = true }
|
||||
multer = { version = "3.0.0", optional = true }
|
||||
serde_json = { version = "1.0", features = ["raw_value"], optional = true }
|
||||
serde_path_to_error = { version = "0.1.8", optional = true }
|
||||
|
||||
Reference in New Issue
Block a user