mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 05:07:55 +08:00
make one cargo feature per backend (#318)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user