1[package]
2name = "unwind"
3version = "0.0.0"
4license = "MIT OR Apache-2.0"
5repository = "https://github.com/rust-lang/rust.git"
6edition = "2024"
7include = [
8 '/libunwind/*',
9]
10
11[lib]
12test = false
13bench = false
14doc = false
15
16[dependencies]
17core = { path = "../rustc-std-workspace-core", package = "rustc-std-workspace-core" }
18
19[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
20libc = { version = "0.2.140", features = ['rustc-dep-of-std'], default-features = false }
21
22[target.'cfg(target_os = "xous")'.dependencies]
23unwinding = { version = "0.2.7", features = ['rustc-dep-of-std', 'unwinder', 'fde-custom'], default-features = false }
24
25[features]
26
27# Only applies for Linux and Fuchsia targets
28# Static link to the in-tree build of llvm libunwind
29llvm-libunwind = []
30
31# Only applies for Linux and Fuchsia targets
32# If crt-static is enabled, static link to `libunwind.a` provided by system
33# If crt-static is disabled, dynamic link to `libunwind.so` provided by system
34system-llvm-libunwind = []
35
36[lints.rust.unexpected_cfgs]
37level = "warn"
38check-cfg = ['cfg(emscripten_wasm_eh)', 'cfg(target_arch, values("loongarch32"))']
39