unwinding/Cargo.toml

42 lines
966 B
TOML
Raw Normal View History

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