summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-30 17:30:34 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-30 17:31:49 +0200
commit49dccb94a5fb5016144e68b5ec36269625add34b (patch)
treebc8cf7d5ef38d4770926e5655bbdd33d4d12586c
parent6653357d5410dfbd868acd59dbf81cba863b1abb (diff)
bin: add notmuch feature
Add notmuch feature that includes melib/notmuch_backend and a new feature for the ui crate. We need the latter in order to know from within ui if we have been linked with libnotmuch
-rw-r--r--Cargo.toml1
-rw-r--r--README6
-rw-r--r--ui/Cargo.toml3
3 files changed, 6 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 612060c6..6e481e1b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,6 +25,7 @@ members = ["melib", "ui", "debug_printer", "testing", "text_processing"]
[features]
default = []
+notmuch = ["melib/notmuch_backend", "ui/notmuch"]
# Print tracing logs as meli runs in stderr
# enable for debug tracing logs: build with --features=debug-tracing
diff --git a/README b/README
index b80755de..b0e758a7 100644
--- a/README
+++ b/README
@@ -59,11 +59,11 @@ BUILDING WITH NOTMUCH
To use the optional notmuch backend feature, you must have libnotmuch installed in your system. In Debian-like systems, install the "libnotmuch" package.
-To build with notmuch support, prepend the environment variable "MELI_FEATURES='melib/notmuch_backend'" to your make invocation:
+To build with notmuch support, prepend the environment variable "MELI_FEATURES='notmuch'" to your make invocation:
-# MELI_FEATURES="melib/notmuch_backend" make
+# MELI_FEATURES="notmuch" make
-or if building directly with cargo, use the flag '--features="melib/notmuch_backend"'.
+or if building directly with cargo, use the flag '--features="notmuch"'.
DEVELOPMENT
===========
diff --git a/ui/Cargo.toml b/ui/Cargo.toml
index 746922be..77e78220 100644
--- a/ui/Cargo.toml
+++ b/ui/Cargo.toml
@@ -30,7 +30,8 @@ rusqlite = {version = "0.20.0", optional =true }
[features]
default = ["sqlite3"]
-
+notmuch = []
sqlite3 = ["rusqlite"]
+
# Print tracing logs as meli runs
debug-tracing = []