1#![allow(missing_debug_implementations)]
24
25pub mod common;
26
27cfg_if::cfg_if! {
28 if #[cfg(unix)] {
29 mod unix;
30 pub use self::unix::*;
31 } else if #[cfg(windows)] {
32 mod windows;
33 pub use self::windows::*;
34 } else if #[cfg(target_os = "solid_asp3")] {
35 mod solid;
36 pub use self::solid::*;
37 } else if #[cfg(target_os = "hermit")] {
38 mod hermit;
39 pub use self::hermit::*;
40 } else if #[cfg(target_os = "trusty")] {
41 mod trusty;
42 pub use self::trusty::*;
43 } else if #[cfg(all(target_os = "wasi", target_env = "p2"))] {
44 mod wasip2;
45 pub use self::wasip2::*;
46 } else if #[cfg(target_os = "wasi")] {
47 mod wasi;
48 pub use self::wasi::*;
49 } else if #[cfg(target_family = "wasm")] {
50 mod wasm;
51 pub use self::wasm::*;
52 } else if #[cfg(target_os = "xous")] {
53 mod xous;
54 pub use self::xous::*;
55 } else if #[cfg(target_os = "uefi")] {
56 mod uefi;
57 pub use self::uefi::*;
58 } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
59 mod sgx;
60 pub use self::sgx::*;
61 } else if #[cfg(target_os = "teeos")] {
62 mod teeos;
63 pub use self::teeos::*;
64 } else if #[cfg(target_os = "zkvm")] {
65 mod zkvm;
66 pub use self::zkvm::*;
67 } else {
68 mod unsupported;
69 pub use self::unsupported::*;
70 }
71}
72
73cfg_if::cfg_if! {
74 if #[cfg(target_os = "fuchsia")] {
76 pub const FULL_BACKTRACE_DEFAULT: bool = true;
77 } else {
78 pub const FULL_BACKTRACE_DEFAULT: bool = false;
79 }
80}
81
82#[cfg(not(target_os = "uefi"))]
83pub type RawOsError = i32;