mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-30 00:00:32 +02:00
make serde an optional dep again
This commit is contained in:
@@ -12,8 +12,8 @@ version = "0.1.2"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
erased-json = ["serde_json"]
|
erased-json = ["serde_json", "serde"]
|
||||||
typed-routing = ["axum-macros"]
|
typed-routing = ["axum-macros", "serde"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { path = "../axum", version = "0.4" }
|
axum = { path = "../axum", version = "0.4" }
|
||||||
@@ -21,7 +21,6 @@ bytes = "1.1.0"
|
|||||||
http = "0.2"
|
http = "0.2"
|
||||||
mime = "0.3"
|
mime = "0.3"
|
||||||
pin-project-lite = "0.2"
|
pin-project-lite = "0.2"
|
||||||
serde = "1.0"
|
|
||||||
tower = { version = "0.4", default_features = false, features = ["util"] }
|
tower = { version = "0.4", default_features = false, features = ["util"] }
|
||||||
tower-http = { version = "0.2", features = ["map-response-body"] }
|
tower-http = { version = "0.2", features = ["map-response-body"] }
|
||||||
tower-layer = "0.3"
|
tower-layer = "0.3"
|
||||||
@@ -29,6 +28,7 @@ tower-service = "0.3"
|
|||||||
|
|
||||||
# optional dependencies
|
# optional dependencies
|
||||||
axum-macros = { path = "../axum-macros", version = "0.1", optional = true }
|
axum-macros = { path = "../axum-macros", version = "0.1", optional = true }
|
||||||
|
serde = { version = "1.0", optional = true }
|
||||||
serde_json = { version = "1.0.71", optional = true }
|
serde_json = { version = "1.0.71", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
Reference in New Issue
Block a user