1[package] 2name = "backtrace" 3version = "0.3.73" 4authors = ["The Rust Project Developers"] 5build = "build.rs" 6license = "MIT OR Apache-2.0" 7readme = "README.md" 8repository = "https://github.com/rust-lang/backtrace-rs" 9homepage = "https://github.com/rust-lang/backtrace-rs" 10documentation = "https://docs.rs/backtrace" 11description = """ 12A library to acquire a stack trace (backtrace) at runtime in a Rust program. 13""" 14autoexamples = true 15autotests = true 16edition = "2021" 17exclude = ["/ci/"] 18rust-version = "1.65.0" 19 20[workspace] 21members = ['crates/cpp_smoke_test', 'crates/as-if-std'] 22exclude = [ 23 'crates/without_debuginfo', 24 'crates/macos_frames_test', 25 'crates/line-tables-only', 26 'crates/debuglink', 27] 28 29[dependencies] 30cfg-if = "1.0" 31rustc-demangle = "0.1.24" 32 33# Optionally enable the ability to serialize a `Backtrace`, controlled through 34# the `serialize-serde` feature below. 35serde = { version = "1.0", optional = true, features = ['derive'] } 36 37# Optionally demangle C++ frames' symbols in backtraces. 38cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = [ 39 "alloc", 40] } 41 42[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies] 43miniz_oxide = { version = "0.7.0", default-features = false } 44addr2line = { version = "0.22.0", default-features = false } 45libc = { version = "0.2.146", default-features = false } 46 47[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object] 48version = "0.36.0" 49default-features = false 50features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive'] 51 52[target.'cfg(windows)'.dependencies] 53winapi = { version = "0.3.9", optional = true } 54 55[build-dependencies] 56# Only needed for Android, but cannot be target dependent 57# https://github.com/rust-lang/cargo/issues/4932 58cc = "1.0.97" 59 60[dev-dependencies] 61dylib-dep = { path = "crates/dylib-dep" } 62libloading = "0.7" 63 64[features] 65# By default libstd support is enabled. 66default = ["std"] 67 68# Include std support. This enables types like `Backtrace`. 69std = [] 70 71serialize-serde = ["serde"] 72 73#======================================= 74# Deprecated/internal features 75# 76# Only here for backwards compatibility purposes or for internal testing 77# purposes. New code should use none of these features. 78coresymbolication = [] 79dbghelp = [] 80dl_iterate_phdr = [] 81dladdr = [] 82kernel32 = [] 83libunwind = [] 84unix-backtrace = [] 85verify-winapi = [ 86 'winapi/dbghelp', 87 'winapi/handleapi', 88 'winapi/libloaderapi', 89 'winapi/memoryapi', 90 'winapi/minwindef', 91 'winapi/processthreadsapi', 92 'winapi/synchapi', 93 'winapi/tlhelp32', 94 'winapi/winbase', 95 'winapi/winnt', 96 'winapi/winnls', 97 'winapi/stringapiset', 98] 99 100[[example]] 101name = "backtrace" 102required-features = ["std"] 103 104[[example]] 105name = "raw" 106required-features = ["std"] 107 108[[test]] 109name = "skip_inner_frames" 110required-features = ["std"] 111 112[[test]] 113name = "long_fn_name" 114required-features = ["std"] 115 116[[test]] 117name = "smoke" 118required-features = ["std"] 119edition = '2021' 120 121[[test]] 122name = "accuracy" 123required-features = ["std"] 124edition = '2021' 125 126[[test]] 127name = "concurrent-panics" 128required-features = ["std"] 129harness = false 130 131[[test]] 132name = "current-exe-mismatch" 133required-features = ["std"] 134harness = false 135 136[lints.rust] 137# This crate uses them pervasively 138unexpected_cfgs = "allow" 139