summaryrefslogtreecommitdiffstats
path: root/mail/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mail/src/lib.rs')
-rw-r--r--mail/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
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.