melib: rename `jmap_backend` feature to `jmap`

pull/262/head
Manos Pitsidianakis 2023-07-22 20:54:55 +03:00
parent e9f09a153c
commit 7db930cabd
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
5 changed files with 6 additions and 6 deletions

View File

@ -73,7 +73,7 @@ tempfile = "3.3"
[features]
default = ["sqlite3", "notmuch", "regexp", "smtp", "dbus-notifications", "gpgme", "cli-docs", "jmap"]
notmuch = ["melib/notmuch", ]
jmap = ["melib/jmap_backend",]
jmap = ["melib/jmap",]
sqlite3 = ["melib/sqlite3"]
smtp = ["melib/smtp"]
regexp = ["pcre2"]

View File

@ -78,7 +78,7 @@ gpgme = []
http = ["isahc"]
http-static = ["isahc", "isahc/static-curl"]
imap = ["imap-codec", "tls"]
jmap_backend = ["http"]
jmap = ["http"]
maildir = ["notify"]
mbox = ["notify"]
notmuch = []

View File

@ -10,7 +10,7 @@ Library for handling mail.
| ---------------------- | ----------------------------------- | ------------------------ |
| `imap` | `native-tls` | |
| `deflate_compression` | `flate2` | for use with IMAP |
| `jmap_backend` | `isahc`, `native-tls`, `serde_json` | |
| `jmap` | `isahc`, `native-tls`, `serde_json` | |
| `maildir` | `notify` | |
| `mbox` | `notify` | |
| `notmuch` | `notify` | |

View File

@ -30,7 +30,7 @@ pub mod nntp;
pub mod notmuch;
#[cfg(feature = "notmuch")]
pub use self::notmuch::NotmuchDb;
#[cfg(feature = "jmap_backend")]
#[cfg(feature = "jmap")]
pub mod jmap;
#[cfg(feature = "maildir")]
pub mod maildir;
@ -198,7 +198,7 @@ impl Backends {
},
);
}
#[cfg(feature = "jmap_backend")]
#[cfg(feature = "jmap")]
{
b.register(
"jmap".to_string(),

View File

@ -649,7 +649,7 @@ impl From<isahc::Error> for Error {
}
}
#[cfg(feature = "jmap_backend")]
#[cfg(feature = "jmap")]
impl From<serde_json::error::Error> for Error {
#[inline]
fn from(kind: serde_json::error::Error) -> Self {