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