unwinding/Cargo.toml
Dan Gohman c40a114e23 Add a way to find .eh_frame_hdr using __GNU_EH_FRAME_HDR.
GNU ld on at least some platforms adds a symbol `__GNU_EH_FRAME_HDR` for
the `.eh_frame_hdr` section. Add a cargo feature `fde-gnu-eh-frame-hdr`
to enable use of this.
2021-10-02 10:13:04 -07:00

43 lines
992 B
TOML

[package]
name = "unwind"
version = "0.1.0"
authors = ["Gary Guo <gary@garyguo.net>"]
edition = "2018"
[workspace]
members = ["cdylib", "example"]
[dependencies]
gimli = { version = "0.25.0", default-features = false, features = ["read"] }
libc = { version = "0.2", optional = true }
spin = { version = "0.9", default-features = false, features = ["mutex", "spin_mutex"] }
[patch.crates-io]
gimli = { git = "https://github.com/gimli-rs/gimli.git" }
[features]
alloc = []
unwinder = []
fde-phdr = ["libc"]
fde-registry = ["alloc"]
fde-static = []
fde-gnu-eh-frame-hdr = []
dwarf-expr = []
hide-trace = []
personality = []
personality-dummy = []
print = ["libc"]
panic = ["alloc"]
panic-handler = ["print", "panic"]
panic-handler-dummy = []
system-alloc = []
default = ["unwinder", "dwarf-expr", "hide-trace", "fde-phdr", "fde-registry"]
[profile.dev]
# Must be turned on due to Rust bug https://github.com/rust-lang/rust/issues/50007
lto = true
[profile.release]
lto = true
debug = true