From 2d11ada30fabe6d50a611e7e7485f836bbe1c18c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 25 Oct 2023 20:03:45 +0200 Subject: [PATCH] tokio-xmpp, xmpp: Remove regex support from env_logger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bloats our binaries by 1.1 MiB after stripping, for very minimal additional features. People who need that feature can enable it themselves. --- tokio-xmpp/Cargo.toml | 2 +- xmpp/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index bb6c8ce..c273814 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -32,7 +32,7 @@ rand = "^0.8" syntect = { version = "5", optional = true } [dev-dependencies] -env_logger = "0.10" +env_logger = { version = "0.10", default-features = false, features = ["auto-color", "humantime"] } [build-dependencies] rustc_version = "0.4" diff --git a/xmpp/Cargo.toml b/xmpp/Cargo.toml index 2ba5608..a8d255e 100644 --- a/xmpp/Cargo.toml +++ b/xmpp/Cargo.toml @@ -22,7 +22,7 @@ reqwest = { version = "0.11.8", features = ["stream"] } tokio-util = { version = "0.7", features = ["codec"] } [dev-dependencies] -env_logger = "0.10" +env_logger = { version = "0.10", default-features = false, features = ["auto-color", "humantime"] } [[example]] name = "hello_bot"