diff options
| author | Max Audron <audron@cocaine.farm> | 2021-12-01 18:08:46 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-12-01 18:09:37 +0100 |
| commit | 4754eea966d652ad3bc10933e72f9072f15da672 (patch) | |
| tree | 572b8d2b3d943435a34e14757abe4020a3b9aaee | |
| parent | add basic bufferviewmanager impl (diff) | |
make client and server features mutually exclusive
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/lib.rs | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -59,7 +59,7 @@ authenticators = [] # Enable the test crate/feature for running benchmarks bench = [] -default = ["client"] +default = [] [package.metadata.docs.rs] # document all features @@ -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; |
