oscall 0.1.1

Low-level cross-platform interface to operating system services: files, memory mapping, networking and more, with no libc on Linux
Documentation
//! Platform backends. Exactly one is compiled in, and re-exported here.
//!
//! Every backend has the same layout: one file per portable module
//! (`mem.rs`, `fs.rs`, ...) and, in its `mod.rs`, the items the core needs:
//! `RawHandle`, `close`, `ERRORS` and `OTHER_ERROR`.

// fullrust is Linux without libc: `target_os = "fullrust"`, and not
// `cfg(unix)`. It shares the raw system call backend with Linux, so never
// gate Linux code on `cfg(unix)` or on `target_os = "linux"` alone.
#[cfg(any(target_os = "linux", target_os = "fullrust"))]
#[path = "linux/mod.rs"]
mod imp;

#[cfg(target_os = "macos")]
#[path = "apple/mod.rs"]
mod imp;

#[cfg(windows)]
#[path = "windows/mod.rs"]
mod imp;

#[cfg(target_os = "wasi")]
#[path = "wasi/mod.rs"]
mod imp;

// WebAssembly with no system interface at all (wasm32-unknown-unknown).
#[cfg(all(target_family = "wasm", not(target_os = "wasi")))]
#[path = "unsupported/mod.rs"]
mod imp;

#[cfg(not(any(
    target_os = "linux",
    target_os = "fullrust",
    target_os = "macos",
    windows,
    target_family = "wasm",
)))]
compile_error!("oscall does not support this operating system");

pub(crate) use imp::*;