From dc6c8bb412001b7029d33bfe844771776a59e937 Mon Sep 17 00:00:00 2001 From: Johannes Becker Date: Fri, 20 Aug 2021 12:47:44 +0200 Subject: [PATCH] feat: expose tower log feature --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 69d748e2b4..20543eb06f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,9 +15,10 @@ version = "0.1.3" members = ["examples/*"] [features] -default = [] +default = ["tower-log"] ws = ["tokio-tungstenite", "sha-1", "base64"] multipart = ["multer", "mime"] +tower-log = ["tower/log"] [dependencies] async-trait = "0.1" @@ -34,7 +35,7 @@ serde_json = "1.0" serde_urlencoded = "0.7" tokio = { version = "1", features = ["time"] } tokio-util = "0.6" -tower = { version = "0.4", features = ["util", "buffer", "make"] } +tower = { version = "0.4", default-features = false, features = ["util", "buffer", "make"] } tower-http = { version = "0.1", features = ["add-extension", "map-response-body"] } sync_wrapper = "0.1.1"