1
 2
 3
 4
 5
 6
 7
 8
 9
10
//! Re-exports IO traits from `tokio`/`futures` depending on enabled feature.
#[cfg(not(feature = "tokio"))]
pub use futures_util::io::{
    AsyncRead as Read, AsyncReadExt as ReadExt, AsyncWrite as Write, AsyncWriteExt as WriteExt,
};

#[cfg(feature = "tokio")]
pub use tokio::io::{
    AsyncRead as Read, AsyncReadExt as ReadExt, AsyncWrite as Write, AsyncWriteExt as WriteExt,
};