#![deny(
unreachable_code,
improper_ctypes_definitions,
future_incompatible,
nonstandard_style,
rust_2018_idioms,
clippy::perf,
clippy::correctness,
clippy::suspicious,
clippy::unwrap_used,
clippy::expect_used,
clippy::indexing_slicing,
clippy::arithmetic_side_effects,
clippy::missing_safety_doc,
clippy::same_item_push,
clippy::implicit_clone,
clippy::all,
clippy::pedantic,
missing_docs,
clippy::nursery,
clippy::single_call_fn
)]
#![warn(
dead_code,
warnings,
clippy::dbg_macro,
clippy::todo,
clippy::unused_async,
clippy::cast_possible_truncation,
clippy::cast_sign_loss,
clippy::cast_possible_wrap,
clippy::unnecessary_safety_comment
)]
#![allow(
unsafe_code,
unused_unsafe,
clippy::unused_async,
private_interfaces,
clippy::restriction,
clippy::inline_always,
unused_doc_comments,
clippy::empty_line_after_doc_comments,
clippy::missing_const_for_thread_local,
clippy::cast_possible_truncation,
clippy::cast_sign_loss,
clippy::cast_possible_wrap
)]
#![crate_name = "dtact_util"]
#[cfg(feature = "native")]
pub use dtact_macros::dtact_io_init as init;
#[cfg(feature = "native")]
pub use dtact_macros::fs_init;
#[cfg(feature = "native")]
pub use dtact_macros::process_init;
#[cfg(all(feature = "native", not(any(unix, windows))))]
compile_error!(
"dtact-util's `native` feature supports Unix (io_uring/kqueue) and \
Windows (IOCP) only. On other platforms, use the default `tokio` feature instead."
);
#[cfg(feature = "native")]
pub mod lockfree;
pub mod io;
pub mod fs;
pub mod timer;
pub mod stream;
pub mod signal;
pub mod process;
pub mod sync;
#[cfg(feature = "ffi")]
pub mod ffi;