fluke-maybe-uring 0.1.1

Replicates some tokio-uring types to allow building code without it
Documentation
use crate::io::IntoHalves;

#[cfg(all(target_os = "linux", feature = "tokio-uring"))]
mod net_uring;

#[cfg(all(target_os = "linux", feature = "tokio-uring"))]
pub use net_uring::*;

#[cfg(not(all(target_os = "linux", feature = "tokio-uring")))]
mod net_noring;

#[cfg(not(all(target_os = "linux", feature = "tokio-uring")))]
pub use net_noring::*;

impl IntoHalves for tokio::net::TcpStream {
    type Read = tokio::net::tcp::OwnedReadHalf;
    type Write = tokio::net::tcp::OwnedWriteHalf;

    fn into_halves(self) -> (Self::Read, Self::Write) {
        self.into_split()
    }
}