make one cargo feature per backend (#318)

This commit is contained in:
Clément DOUIN
2022-03-04 14:19:54 +01:00
parent c40dde6e9a
commit f06beb61ae
14 changed files with 103 additions and 110 deletions
+2
View File
@@ -1,8 +1,10 @@
#[cfg(feature = "imap-backend")]
use himalaya::{
backends::{Backend, ImapBackend, ImapEnvelopes},
config::{AccountConfig, ImapBackendConfig},
};
#[cfg(feature = "imap-backend")]
#[test]
fn test_imap_backend() {
// configure accounts
+3 -3
View File
@@ -1,13 +1,13 @@
#[cfg(feature = "notmuch")]
#[cfg(feature = "notmuch-backend")]
use std::{collections::HashMap, env, fs, iter::FromIterator};
#[cfg(feature = "notmuch")]
#[cfg(feature = "notmuch-backend")]
use himalaya::{
backends::{Backend, MaildirBackend, NotmuchBackend, NotmuchEnvelopes},
config::{AccountConfig, MaildirBackendConfig, NotmuchBackendConfig},
};
#[cfg(feature = "notmuch")]
#[cfg(feature = "notmuch-backend")]
#[test]
fn test_notmuch_backend() {
// set up maildir folders and notmuch database