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