std/sys/args/
mod.rs
1#![forbid(unsafe_op_in_unsafe_fn)]
4
5cfg_if::cfg_if! {
6 if #[cfg(any(
7 all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))),
8 target_os = "hermit",
9 ))] {
10 mod unix;
11 pub use unix::*;
12 } else if #[cfg(target_family = "windows")] {
13 mod windows;
14 pub use windows::*;
15 } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
16 mod sgx;
17 pub use sgx::*;
18 } else if #[cfg(target_os = "uefi")] {
19 mod uefi;
20 pub use uefi::*;
21 } else if #[cfg(target_os = "wasi")] {
22 mod wasi;
23 pub use wasi::*;
24 } else if #[cfg(target_os = "xous")] {
25 mod xous;
26 pub use xous::*;
27 } else if #[cfg(target_os = "zkvm")] {
28 mod zkvm;
29 pub use zkvm::*;
30 } else {
31 mod unsupported;
32 pub use unsupported::*;
33 }
34}