4 authors = ["The Rust Project Developers"]
6 license = "MIT/Apache-2.0"
8 repository = "https://github.com/rust-lang/backtrace-rs"
9 homepage = "https://github.com/rust-lang/backtrace-rs"
10 documentation = "https://docs.rs/backtrace"
12 A library to acquire a stack trace (backtrace) at runtime in a Rust program.
19 members = ['crates/cpp_smoke_test', 'crates/as-if-std']
21 'crates/without_debuginfo',
22 'crates/macos_frames_test',
23 'crates/line-tables-only',
29 rustc-demangle = "0.1.4"
30 libc = { version = "0.2.94", default-features = false }
32 # Optionally enable the ability to serialize a `Backtrace`, controlled through
33 # the `serialize-*` features below.
34 serde = { version = "1.0", optional = true, features = ['derive'] }
35 rustc-serialize = { version = "0.3", optional = true }
37 # Optionally demangle C++ frames' symbols in backtraces.
38 cpp_demangle = { default-features = false, version = "0.3.0", optional = true }
41 # Optional dependencies enabled through the `gimli-symbolize` feature, do not
42 # use these features directly.
43 addr2line = { version = "0.17.0", default-features = false }
44 miniz_oxide = { version = "0.5.0", default-features = false }
48 default-features = false
49 features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
51 [target.'cfg(windows)'.dependencies]
52 winapi = { version = "0.3.9", optional = true }
55 # Only needed for Android, but cannot be target dependent
56 # https://github.com/rust-lang/cargo/issues/4932
60 dylib-dep = { path = "crates/dylib-dep" }
64 # By default libstd support and gimli-symbolize is used to symbolize addresses.
67 # Include std support. This enables types like `Backtrace`.
70 #=======================================
71 # Methods of serialization
73 # Various features used for enabling rustc-serialize or syntex codegen.
74 serialize-rustc = ["rustc-serialize"]
75 serialize-serde = ["serde"]
77 #=======================================
78 # Deprecated/internal features
80 # Only here for backwards compatibility purposes or for internal testing
81 # purposes. New code should use none of these features.
82 coresymbolication = []
93 'winapi/libloaderapi',
96 'winapi/processthreadsapi',
105 required-features = ["std"]
109 required-features = ["std"]
112 name = "skip_inner_frames"
113 required-features = ["std"]
116 name = "long_fn_name"
117 required-features = ["std"]
121 required-features = ["std"]
126 required-features = ["std"]
130 name = "concurrent-panics"
131 required-features = ["std"]