summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Korber <philippkorber@gmail.com>2018-11-23 20:48:04 +0100
committerPhilipp Korber <philippkorber@gmail.com>2018-11-23 20:48:04 +0100
commitc3d8d9a92a3484bd0c9b3ccc38e72f4641689aaa (patch)
tree34e37c5237836ec90ba7fd589792af0ff97bbce5
parentad4235f89b539a9f0935da6eeebab7bdaa45ded5 (diff)
feat(mail/serde) re-export serde-impl feature
-rw-r--r--mail/Cargo.toml1
-rw-r--r--mail/src/lib.rs3
2 files changed, 4 insertions, 0 deletions
diff --git a/mail/Cargo.toml b/mail/Cargo.toml
index f69e93b..391e12b 100644
--- a/mail/Cargo.toml
+++ b/mail/Cargo.toml
@@ -16,6 +16,7 @@ smtp = ["mail-smtp"]
handlebars = ["mail-template/handlebars-bindings"]
traceing = ["mail-internals/traceing", "mail-headers/traceing"]
test-utils = ["mail-core/test-utils"]
+serde-impl = ["mail-core/serde-impl", "mail-headers/serde-impl"]
[[example]]
name = "mail_by_hand"
diff --git a/mail/src/lib.rs b/mail/src/lib.rs
index a9203b0..8af84af 100644
--- a/mail/src/lib.rs
+++ b/mail/src/lib.rs
@@ -97,6 +97,9 @@ use self::template as mail_template;
#[cfg(feature="smtp")]
pub extern crate mail_smtp as smtp;
+#[cfg(all(feature="serde", not(feature="serde-impl")))]
+compile_error! {"use feature `serde-impl` instead of pseudo-feature `serde`"}
+
/// Re-export of all parts of the `mail_core` crate.
///
/// Some parts like `error`/`default_impl` will get overridden.