Skip to main content

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_family = "unix")]
24mod unix;
25#[cfg(target_os = "windows")]
26mod windows;
27
28pub use self::exit_status::ExitStatus;
29#[cfg(unix)]
30pub use self::foreground::stdin_fd;
31pub use self::foreground::{
32    ForegroundChild, ForegroundGuard, ForegroundWaitStatus, UnfreezeHandle,
33};
34
35pub use self::util::*;
36
37#[cfg(target_os = "freebsd")]
38pub use self::freebsd::*;
39#[cfg(any(target_os = "android", target_os = "linux"))]
40pub use self::linux::*;
41#[cfg(target_os = "macos")]
42pub use self::macos::*;
43#[cfg(any(target_os = "netbsd", target_os = "openbsd"))]
44pub use self::netbsd::*;
45#[cfg(target_family = "unix")]
46pub use self::unix::*;
47#[cfg(target_os = "windows")]
48pub use self::windows::*;