stacker/backends/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cfg_if! {
    if #[cfg(miri)] {
        mod fallback;
        pub use fallback::guess_os_stack_limit;
    } else if #[cfg(windows)] {
        pub(crate) mod windows;
        pub use windows::guess_os_stack_limit;
    } else if #[cfg(any(
        target_os = "linux",
        target_os = "solaris",
        target_os = "netbsd",
        target_os = "freebsd",
        target_os = "dragonfly",
        target_os = "illumos"
    ))] {
        mod unix;
        pub use unix::guess_os_stack_limit;
    } else if #[cfg(target_os = "openbsd")] {
        mod openbsd;
        pub use openbsd::guess_os_stack_limit;
    } else if #[cfg(target_os = "macos")] {
        mod macos;
        pub use macos::guess_os_stack_limit;
    } else {
        mod fallback;
        pub use fallback::guess_os_stack_limit;
    }
}