nu_system/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(
3    not(target_arch = "wasm32"),
4    allow(
5        clippy::disallowed_types,
6        reason = "This file may be compiled as host build-script code while building the wasm target"
7    )
8)]
9
10mod exit_status;
11mod foreground;
12mod util;
13
14#[cfg(target_os = "freebsd")]
15mod freebsd;
16#[cfg(any(target_os = "android", target_os = "linux"))]
17mod linux;
18#[cfg(target_os = "macos")]
19mod macos;
20#[cfg(any(target_os = "netbsd", target_os = "openbsd"))]
21mod netbsd;
22pub mod os_info;
23#[cfg(target_os = "windows")]
24mod windows;
25
26pub use self::exit_status::ExitStatus;
27#[cfg(unix)]
28pub use self::foreground::stdin_fd;
29pub use self::foreground::{
30    ForegroundChild, ForegroundGuard, ForegroundWaitStatus, UnfreezeHandle,
31};
32
33pub use self::util::*;
34
35#[cfg(target_os = "freebsd")]
36pub use self::freebsd::*;
37#[cfg(any(target_os = "android", target_os = "linux"))]
38pub use self::linux::*;
39#[cfg(target_os = "macos")]
40pub use self::macos::*;
41#[cfg(any(target_os = "netbsd", target_os = "openbsd"))]
42pub use self::netbsd::*;
43#[cfg(target_os = "windows")]
44pub use self::windows::*;