From 5a53020f3d2d7819c5c24871d2dd126c5a2ec84c Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 23 Sep 2019 09:36:46 +0300 Subject: [PATCH] Add debug-tracing feature to all crates The feature needs to be defined in all manifests in order to be enabled in all crates. --- melib/Cargo.toml | 1 + testing/Cargo.toml | 9 +++++++-- ui/Cargo.toml | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/melib/Cargo.toml b/melib/Cargo.toml index 441353c2e..e8b8bf19f 100644 --- a/melib/Cargo.toml +++ b/melib/Cargo.toml @@ -29,6 +29,7 @@ libc = {version = "0.2.59", features = ["extra_traits",]} [features] default = ["unicode_algorithms", "imap_backend", "maildir_backend", "mbox_backend"] +debug-tracing = [] unicode_algorithms = ["text_processing"] imap_backend = ["native-tls"] maildir_backend = ["notify", "notify-rust", "memmap"] diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 249c39684..21047b6d5 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -16,7 +16,12 @@ path = "src/linebreak.rs" name = "imapconn" path = "src/imap_conn.rs" - [dependencies] -melib = { path = "../melib", version = "*" } +melib = { path = "../melib", version = "*", features = ["debug-tracing"] } text_processing = { path = "../text_processing", version = "*" } + +[features] +default = [] + +# Print tracing logs as meli runs +debug-tracing = [] diff --git a/ui/Cargo.toml b/ui/Cargo.toml index 05d643a5f..7e830eaf8 100644 --- a/ui/Cargo.toml +++ b/ui/Cargo.toml @@ -25,3 +25,9 @@ uuid = { version = "0.6", features = ["serde", "v4"] } unicode-segmentation = "1.2.1" # >:c text_processing = { path = "../text_processing", version = "*" } libc = {version = "0.2.59", features = ["extra_traits",]} + +[features] +default = [] + +# Print tracing logs as meli runs +debug-tracing = []