melib: rename `maildir_backend` feature to `maildir`

pull/262/head
Manos Pitsidianakis 2023-07-22 20:48:09 +03:00
parent 129f10911b
commit fe027fa300
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
3 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ mailin-embedded = { version = "0.7", features = ["rtls"] }
stderrlog = "^0.5"
[features]
default = ["unicode_algorithms", "imap", "maildir_backend", "mbox_backend", "vcard", "smtp", "deflate_compression"]
default = ["unicode_algorithms", "imap", "maildir", "mbox_backend", "vcard", "smtp", "deflate_compression"]
debug-tracing = []
deflate_compression = ["flate2", "imap-codec/ext_compress"]
@ -79,7 +79,7 @@ http = ["isahc"]
http-static = ["isahc", "isahc/static-curl"]
imap = ["imap-codec", "tls"]
jmap_backend = ["http"]
maildir_backend = ["notify"]
maildir = ["notify"]
mbox_backend = ["notify"]
notmuch_backend = []
smtp = ["tls", "base64"]

View File

@ -11,7 +11,7 @@ Library for handling mail.
| `imap` | `native-tls` | |
| `deflate_compression` | `flate2` | for use with IMAP |
| `jmap_backend` | `isahc`, `native-tls`, `serde_json` | |
| `maildir_backend` | `notify` | |
| `maildir` | `notify` | |
| `mbox_backend` | `notify` | |
| `notmuch_backend` | `notify` | |
| `sqlite` | `rusqlite` | used in IMAP cache |

View File

@ -32,7 +32,7 @@ pub mod notmuch;
pub use self::notmuch::NotmuchDb;
#[cfg(feature = "jmap_backend")]
pub mod jmap;
#[cfg(feature = "maildir_backend")]
#[cfg(feature = "maildir")]
pub mod maildir;
#[cfg(feature = "mbox_backend")]
pub mod mbox;
@ -52,7 +52,7 @@ use futures::stream::Stream;
#[cfg(feature = "imap")]
pub use self::imap::ImapType;
#[cfg(feature = "maildir_backend")]
#[cfg(feature = "maildir")]
use self::maildir::MaildirType;
#[cfg(feature = "mbox_backend")]
use self::mbox::MboxType;
@ -154,7 +154,7 @@ impl Backends {
let mut b = Self {
map: HashMap::with_capacity_and_hasher(1, Default::default()),
};
#[cfg(feature = "maildir_backend")]
#[cfg(feature = "maildir")]
{
b.register(
"maildir".to_string(),