aboutsummaryrefslogtreecommitdiff
path: root/net/src/codec/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'net/src/codec/mod.rs')
-rw-r--r--net/src/codec/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/src/codec/mod.rs b/net/src/codec/mod.rs
index 565cb07..43a02f3 100644
--- a/net/src/codec/mod.rs
+++ b/net/src/codec/mod.rs
@@ -1,9 +1,12 @@
mod bytes_codec;
mod length_codec;
+#[cfg(feature = "ws")]
mod websocket;
pub use bytes_codec::BytesCodec;
pub use length_codec::LengthCodec;
+
+#[cfg(feature = "ws")]
pub use websocket::{WebSocketCodec, WebSocketDecoder, WebSocketEncoder};
use crate::Result;