aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-12-01 18:08:46 +0100
committerMax Audron <audron@cocaine.farm>2021-12-01 18:09:37 +0100
commit4754eea966d652ad3bc10933e72f9072f15da672 (patch)
tree572b8d2b3d943435a34e14757abe4020a3b9aaee /src
parentadd basic bufferviewmanager impl (diff)
make client and server features mutually exclusive
Diffstat (limited to 'src')
-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;