diff --git a/rumqttc/src/framed.rs b/rumqttc/src/framed.rs index ef86382d6..2b5b34d02 100644 --- a/rumqttc/src/framed.rs +++ b/rumqttc/src/framed.rs @@ -92,6 +92,8 @@ impl Network { } } +// NOTE: WsStream currently doesn't support Sync, so we disable Sync enforcement for websocket builds + #[cfg(not(feature = "websocket"))] pub trait AsyncReadWrite: AsyncRead + AsyncWrite + Send + Sync + Unpin {} #[cfg(not(feature = "websocket"))]