mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
ee870d6c82
The `unwinding` crate supports processing unwinding data, and is written entirely in Rust. This allows it to be ported to new platforms more easily than using the llvm-based `libunwind`. While `libunwind` is very well supported on major targets, it is difficult to use on other targets. SGX is an example of this where Rust carries custom patches in order to enable backtrace support. This adds an alternative for supported architectures. Rather than providing a custom target, `unwinding` allows for a solution that is completely written in Rust. This adds `xous` as the first consumer, and forthcoming patches will modify libstd to take advantage of this. Signed-off-by: Sean Cross <sean@xobs.io>
35 lines
926 B
TOML
35 lines
926 B
TOML
[package]
|
|
name = "unwind"
|
|
version = "0.0.0"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rust-lang/rust.git"
|
|
edition = "2021"
|
|
include = [
|
|
'/libunwind/*',
|
|
]
|
|
|
|
[lib]
|
|
test = false
|
|
bench = false
|
|
doc = false
|
|
|
|
[dependencies]
|
|
core = { path = "../core" }
|
|
libc = { version = "0.2.140", features = ['rustc-dep-of-std'], default-features = false }
|
|
compiler_builtins = "0.1.0"
|
|
cfg-if = "1.0"
|
|
|
|
[target.'cfg(target_os = "xous")'.dependencies]
|
|
unwinding = { version = "0.2.1", features = ['rustc-dep-of-std', 'unwinder', 'fde-custom'], default-features = false }
|
|
|
|
[features]
|
|
|
|
# Only applies for Linux and Fuchsia targets
|
|
# Static link to the in-tree build of llvm libunwind
|
|
llvm-libunwind = []
|
|
|
|
# Only applies for Linux and Fuchsia targets
|
|
# If crt-static is enabled, static link to `libunwind.a` provided by system
|
|
# If crt-static is disabled, dynamic link to `libunwind.so` provided by system
|
|
system-llvm-libunwind = []
|