Build with no default features, examples still require default features

pull/3/head
Danny Browning 5 years ago committed by Sebastian Dröge
parent 6ed543c8bf
commit 6cdf141a02
  1. 4
      src/lib.rs

@ -381,6 +381,7 @@ where
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::compat::AllowStd; use crate::compat::AllowStd;
#[cfg(feature="connect")]
use crate::connect::encryption::AutoStream; use crate::connect::encryption::AutoStream;
use crate::WebSocketStream; use crate::WebSocketStream;
use std::io::{Read, Write}; use std::io::{Read, Write};
@ -397,10 +398,13 @@ mod tests {
is_read::<AllowStd<async_std::net::TcpStream>>(); is_read::<AllowStd<async_std::net::TcpStream>>();
is_write::<AllowStd<async_std::net::TcpStream>>(); is_write::<AllowStd<async_std::net::TcpStream>>();
#[cfg(feature="connect")]
is_async_read::<AutoStream<async_std::net::TcpStream>>(); is_async_read::<AutoStream<async_std::net::TcpStream>>();
#[cfg(feature="connect")]
is_async_write::<AutoStream<async_std::net::TcpStream>>(); is_async_write::<AutoStream<async_std::net::TcpStream>>();
is_unpin::<WebSocketStream<async_std::net::TcpStream>>(); is_unpin::<WebSocketStream<async_std::net::TcpStream>>();
#[cfg(feature="connect")]
is_unpin::<WebSocketStream<AutoStream<async_std::net::TcpStream>>>(); is_unpin::<WebSocketStream<AutoStream<async_std::net::TcpStream>>>();
} }
} }

Loading…
Cancel
Save