]> git.lizzy.rs Git - rust.git/blob - src/libunwind/lib.rs
Simplify SaveHandler trait
[rust.git] / src / libunwind / lib.rs
1 #![no_std]
2 #![unstable(feature = "panic_unwind", issue = "32837")]
3
4 #![deny(rust_2018_idioms)]
5
6 #![feature(link_cfg)]
7 #![feature(nll)]
8 #![feature(staged_api)]
9 #![feature(unwind_attributes)]
10 #![feature(static_nobundle)]
11
12 #![cfg_attr(not(target_env = "msvc"), feature(libc))]
13
14 cfg_if::cfg_if! {
15     if #[cfg(target_env = "msvc")] {
16         // no extra unwinder support needed
17     } else if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] {
18         // no unwinder on the system!
19     } else {
20         mod libunwind;
21         pub use libunwind::*;
22     }
23 }
24
25 #[cfg(target_env = "musl")]
26 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
27 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
28 extern {}