ntr-io 0.0.1

Idiomatic NT APIs on Rust (I/O)
mod error;
pub mod handle;
pub mod raw;
#[cfg(feature = "net")]
pub mod socket;
mod win;

pub use error::{Error, Result};

#[cfg(feature = "std")]
pub use std::os::windows::io::AsHandle;
#[cfg(feature = "std")]
pub use std::os::windows::io::AsSocket;
#[cfg(feature = "std")]
pub use std::os::windows::io::RawHandle;
#[cfg(feature = "std")]
pub use std::os::windows::io::RawSocket;
#[cfg(feature = "std")]
pub use std::os::windows::io::{AsRawHandle, FromRawHandle, IntoRawHandle};
#[cfg(feature = "std")]
pub use std::os::windows::io::{AsRawSocket, FromRawSocket, IntoRawSocket};
#[cfg(feature = "std")]
pub use std::os::windows::io::{BorrowedHandle, OwnedHandle};
#[cfg(feature = "std")]
pub use std::os::windows::io::{BorrowedSocket, OwnedSocket};
#[cfg(feature = "std")]
pub use std::os::windows::io::{HandleOrInvalid, HandleOrNull};
#[cfg(feature = "std")]
pub use std::os::windows::io::{InvalidHandleError, NullHandleError};

#[cfg(not(feature = "std"))]
pub use handle::AsHandle;
#[cfg(not(feature = "std"))]
pub use handle::{BorrowedHandle, OwnedHandle};
#[cfg(not(feature = "std"))]
pub use handle::{HandleOrInvalid, HandleOrNull};
#[cfg(not(feature = "std"))]
pub use handle::{InvalidHandleError, NullHandleError};
#[cfg(not(feature = "std"))]
pub use raw::RawHandle;
#[cfg(not(feature = "std"))]
pub use raw::RawSocket;
#[cfg(not(feature = "std"))]
pub use raw::{AsRawHandle, FromRawHandle, IntoRawHandle};
#[cfg(not(feature = "std"))]
pub use raw::{AsRawSocket, FromRawSocket, IntoRawSocket};
#[cfg(all(not(feature = "std"), feature = "net"))]
pub use socket::AsSocket;
#[cfg(all(not(feature = "std"), feature = "net"))]
pub use socket::{BorrowedSocket, OwnedSocket};

pub use win::AsWindowsHandle;
#[cfg(feature = "net")]
pub use win::AsWindowsSocket;