4 authors = ["The Rust Project Developers"]
6 license = "MIT OR 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.
18 rust-version = "1.65.0"
21 members = ['crates/cpp_smoke_test', 'crates/as-if-std']
23 'crates/without_debuginfo',
24 'crates/macos_frames_test',
25 'crates/line-tables-only',
31 rustc-demangle = "0.1.4"
33 # Optionally enable the ability to serialize a `Backtrace`, controlled through
34 # the `serialize-*` features below.
35 serde = { version = "1.0", optional = true, features = ['derive'] }
36 rustc-serialize = { version = "0.3", optional = true }
38 # Optionally demangle C++ frames' symbols in backtraces.
39 cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = ["alloc"] }
41 [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
42 miniz_oxide = { version = "0.7.0", default-features = false }
43 addr2line = { version = "0.21.0", default-features = false }
44 libc = { version = "0.2.146", default-features = false }
46 [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object]
48 default-features = false
49 features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', '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 is enabled.
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"]
135 name = "current-exe-mismatch"
136 required-features = ["std"]