1#![deny(rust_2018_idioms, unreachable_pub, missing_debug_implementations)]
3
4mod compat;
5pub mod connect;
6
7pub use ntex_io::Io;
8pub use ntex_rt::{spawn, spawn_blocking};
9
10cfg_if::cfg_if! {
11 if #[cfg(all(feature = "neon", target_os = "linux", feature = "io-uring"))] {
12 #[path = "rt_uring/mod.rs"]
13 mod rt_impl;
14 pub use self::rt_impl::{
15 from_tcp_stream, from_unix_stream, tcp_connect, unix_connect, active_stream_ops
16 };
17 } else if #[cfg(all(unix, feature = "neon"))] {
18 #[path = "rt_polling/mod.rs"]
19 mod rt_impl;
20 pub use self::rt_impl::{
21 from_tcp_stream, from_unix_stream, tcp_connect, unix_connect, active_stream_ops
22 };
23 } else {
24 pub use self::compat::*;
25 }
26}
27
28#[cfg(all(unix, feature = "neon"))]
29mod helpers;