summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-09-23 09:36:46 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-09-23 09:36:46 +0300
commit5a53020f3d2d7819c5c24871d2dd126c5a2ec84c (patch)
tree08a6b87f892811da885bd46c5c061d808a1c1b13
parent26e4d50b402213c07c7d492ace8d6cd2e88a816d (diff)
Add debug-tracing feature to all crates
The feature needs to be defined in all manifests in order to be enabled in all crates.
-rw-r--r--melib/Cargo.toml1
-rw-r--r--testing/Cargo.toml9
-rw-r--r--ui/Cargo.toml6
3 files changed, 14 insertions, 2 deletions
diff --git a/melib/Cargo.toml b/melib/Cargo.toml
index 441353c2..e8b8bf19 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 249c3968..21047b6d 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 05d643a5..7e830eaf 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 = []