aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 59f0167..5c7749f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -59,7 +59,7 @@ authenticators = []
# Enable the test crate/feature for running benchmarks
bench = []
-default = ["client"]
+default = []
[package.metadata.docs.rs]
# document all features
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;