moduvex-runtime 1.0.0

Custom async runtime for the Moduvex framework — epoll/kqueue/IOCP, hybrid threading
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Platform abstraction layer.
//!
//! Selects the appropriate OS-level primitives at compile time and re-exports
//! them through a unified `sys` surface that the rest of the crate uses.
//!
//! Supported targets:
//! - Linux   → epoll (via `reactor::epoll`)
//! - macOS   → kqueue (via `reactor::kqueue`)
//! - FreeBSD → kqueue (via `reactor::kqueue`)
//! - Windows → IOCP stub (via `reactor::iocp`)

pub mod sys;

// Re-export the most-used types at the platform level so callers can write
// `platform::RawSource` instead of `platform::sys::RawSource`.
pub use sys::{close_fd, create_pipe, events_with_capacity, set_nonblocking};
pub use sys::{Event, Events, Interest, RawSource};