brush_core/
sys.rs

1//! Platform abstraction facilities
2
3#![allow(unused)]
4
5#[cfg(unix)]
6pub(crate) mod unix;
7#[cfg(unix)]
8pub(crate) use unix as platform;
9
10#[cfg(windows)]
11pub(crate) mod windows;
12#[cfg(windows)]
13pub(crate) use windows as platform;
14
15#[cfg(target_family = "wasm")]
16pub(crate) mod wasm;
17#[cfg(target_family = "wasm")]
18pub(crate) use wasm as platform;
19
20#[cfg(not(unix))]
21pub(crate) mod stubs;
22
23#[cfg(any(unix, windows))]
24pub(crate) mod hostname;
25#[cfg(any(unix, windows))]
26pub mod tokio_process;
27
28pub mod fs;
29
30pub use platform::commands;
31pub use platform::fd;
32pub use platform::input;
33pub(crate) use platform::network;
34pub use platform::process;
35pub use platform::resource;
36pub use platform::signal;
37pub use platform::terminal;
38pub(crate) use platform::users;
39
40pub use platform::PlatformError;