aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2e3d3e0..e66b2d6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -30,6 +30,9 @@ pub mod error;
/// Framing impl to be used with [`tokio_util::codec::Framed`]
pub mod frame;
+#[cfg(all(feature = "client", feature = "server"))]
+compile_error!("feature \"client\" and feature \"server\" cannot be enabled at the same time");
+
/// Traits for Serialization of objects
pub mod serialize {
use failure::Error;