2021-08-24 20:55:49 -05:00
|
|
|
[package]
|
|
|
|
name = "unwind"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Gary Guo <gary@garyguo.net>"]
|
|
|
|
edition = "2018"
|
|
|
|
|
2021-08-25 23:01:50 -05:00
|
|
|
[workspace]
|
|
|
|
members = ["cdylib"]
|
|
|
|
|
2021-08-24 20:55:49 -05:00
|
|
|
[dependencies]
|
|
|
|
gimli = { version = "0.25.0", default-features = false, features = ["read"] }
|
2021-08-25 21:51:12 -05:00
|
|
|
libc = { version = "0.2", optional = true }
|
2021-08-25 22:27:01 -05:00
|
|
|
spin = { version = "0.9", default-features = false, features = ["mutex", "spin_mutex"] }
|
2021-08-25 21:50:33 -05:00
|
|
|
|
|
|
|
[features]
|
2021-08-25 21:51:12 -05:00
|
|
|
alloc = []
|
|
|
|
fde-phdr = ["libc"]
|
|
|
|
fde-registry = ["alloc"]
|
2021-08-25 23:37:45 -05:00
|
|
|
dwarf-expr = []
|
2021-08-25 23:40:08 -05:00
|
|
|
hide-trace = []
|
2021-08-26 03:54:50 -05:00
|
|
|
personality = []
|
2021-08-26 02:17:04 -05:00
|
|
|
personality-dummy = []
|
2021-08-26 04:01:58 -05:00
|
|
|
print = ["libc"]
|
2021-08-26 04:51:55 -05:00
|
|
|
panic = ["alloc"]
|
2021-08-26 04:55:35 -05:00
|
|
|
panic-handler = ["print", "panic"]
|
2021-08-25 23:27:28 -05:00
|
|
|
system-alloc = []
|
2021-08-25 23:40:08 -05:00
|
|
|
default = ["dwarf-expr", "hide-trace", "fde-phdr", "fde-registry"]
|
2021-08-24 20:55:49 -05:00
|
|
|
|
2021-08-25 23:20:25 -05:00
|
|
|
[profile.dev]
|
|
|
|
# Must be turned on due to Rust bug https://github.com/rust-lang/rust/issues/50007
|
|
|
|
lto = true
|
|
|
|
|
2021-08-24 20:55:49 -05:00
|
|
|
[profile.release]
|
2021-08-25 23:20:25 -05:00
|
|
|
lto = true
|
2021-08-24 20:55:49 -05:00
|
|
|
debug = true
|