mio_utun/
lib.rs

1//! MIO bindings for Unix Domain Sockets
2
3#![cfg(unix)]
4#![doc(html_root_url = "https://docs.rs/mio-utun/0.6")]
5
6#[macro_use] extern crate nix;
7extern crate libc;
8extern crate mio;
9
10
11#[cfg(all(unix, any(target_os = "macos", target_os = "ios")))]
12pub mod macos;
13#[cfg(all(unix, any(target_os = "macos", target_os = "ios")))]
14pub use macos::UtunStream;
15
16#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))]
17extern crate byteorder;
18#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))]
19pub mod linux;
20#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))]
21pub use linux::UtunStream;