From c537911ab237ebd9064795195067d2b6bf906adc Mon Sep 17 00:00:00 2001 From: Douman Date: Sat, 4 Jan 2020 11:59:23 +0100 Subject: [PATCH] Disable logging in release --- Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ab79a70..e3c1e93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,13 @@ default-features = false features = ["rt-core", "io-driver", "macros"] optional = true +[dependencies.log] +version = "0.4" +# It is supposed to be compile time elimination, but actually it is not :( +# Though likely these ifs will be constexpr +features = ["release_max_level_off"] +optional = true + [dependencies] memmap = "0.7" @@ -47,7 +54,7 @@ dirs = { version = "2", optional = true } futures-util = { version = "0.3" } [features] -cli = ["structopt", "toml", "dirs", "tokio"] +cli = ["structopt", "toml", "dirs", "tokio", "log"] [[bin]] name = "fie"