From a6a37d33ae3512ae4e4b5fffaa0b18724f6a3884 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 14 Feb 2022 09:39:00 +0100 Subject: [PATCH] make serde an optional dep again --- axum-extra/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index fdfb9b490fc..b3a88ddb71a 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -13,7 +13,7 @@ version = "0.1.2" [features] default = [] erased-json = ["serde_json"] -typed-routing = ["axum-macros"] +typed-routing = ["axum-macros", "serde"] [dependencies] axum = { path = "../axum", version = "0.4" } @@ -21,7 +21,6 @@ bytes = "1.1.0" http = "0.2" mime = "0.3" pin-project-lite = "0.2" -serde = "1.0" tower = { version = "0.4", default_features = false, features = ["util"] } tower-http = { version = "0.2", features = ["map-response-body"] } tower-layer = "0.3" @@ -29,6 +28,7 @@ tower-service = "0.3" # optional dependencies axum-macros = { path = "../axum-macros", version = "0.1", optional = true } +serde = { version = "1.0", optional = true } serde_json = { version = "1.0.71", optional = true } [dev-dependencies]