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
jmap
Manos Pitsidianakis 2019-11-30 17:30:34 +02:00
parent 6653357d54
commit 49dccb94a5
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
3 changed files with 6 additions and 4 deletions

View File

@ -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

6
README
View File

@ -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
===========

View File

@ -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 = []