]> git.proxmox.com Git - rustc.git/blame - library/backtrace/Cargo.toml
New upstream version 1.53.0+dfsg1
[rustc.git] / library / backtrace / Cargo.toml
CommitLineData
3dfed10e
XL
1[package]
2name = "backtrace"
cdc7bbd5 3version = "0.3.57"
3dfed10e
XL
4authors = ["The Rust Project Developers"]
5license = "MIT/Apache-2.0"
6readme = "README.md"
7repository = "https://github.com/rust-lang/backtrace-rs"
8homepage = "https://github.com/rust-lang/backtrace-rs"
9documentation = "https://docs.rs/backtrace"
10description = """
11A library to acquire a stack trace (backtrace) at runtime in a Rust program.
12"""
13autoexamples = true
14autotests = true
15edition = "2018"
16
17[workspace]
18members = ['crates/cpp_smoke_test', 'crates/as-if-std']
19exclude = ['crates/without_debuginfo', 'crates/macos_frames_test', 'crates/line-tables-only']
20
21[dependencies]
29967ef6 22cfg-if = "1.0"
3dfed10e
XL
23rustc-demangle = "0.1.4"
24backtrace-sys = { path = "crates/backtrace-sys", version = "0.1.35", optional = true, default_features = false }
cdc7bbd5 25libc = { version = "0.2.87", default-features = false }
3dfed10e
XL
26
27# Optionally enable the ability to serialize a `Backtrace`, controlled through
28# the `serialize-*` features below.
29serde = { version = "1.0", optional = true, features = ['derive'] }
30rustc-serialize = { version = "0.3", optional = true }
31
32# Optionally demangle C++ frames' symbols in backtraces.
33cpp_demangle = { default-features = false, version = "0.3.0", optional = true }
34
35
36# Optional dependencies enabled through the `gimli-symbolize` feature, do not
37# use these features directly.
cdc7bbd5 38addr2line = { version = "0.14.1", optional = true, default-features = false }
3dfed10e
XL
39miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
40[dependencies.object]
cdc7bbd5 41version = "0.23"
3dfed10e
XL
42optional = true
43default-features = false
fc512014 44features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
3dfed10e
XL
45
46[target.'cfg(windows)'.dependencies]
47winapi = { version = "0.3.3", optional = true }
48
49[dev-dependencies]
50dylib-dep = { path = "crates/dylib-dep" }
51libloading = "0.6"
52
53[features]
54# By default libstd support and gimli-symbolize is used to symbolize addresses.
55default = ["std", "gimli-symbolize"]
56
57# Include std support. This enables types like `Backtrace`.
58std = []
59
60#=======================================
61# Methods of resolving symbols
62#
63# - gimli-symbolize: use the `gimli-rs/addr2line` crate to symbolicate
64# addresses into file, line, and name using DWARF debug information.
65# - libbacktrace: this feature activates the `backtrace-sys` dependency,
66# building the libbacktrace library found in gcc repos.
67#
68# Note that MSVC unconditionally uses the dbghelp library to symbolize and won't
69# be affected by feature selection here. Also note that it's highly unlikely you
70# want to configure this. If you're having trouble getting backtraces it's
71# likely best to open an issue.
72gimli-symbolize = ["addr2line", "miniz_oxide", "object"]
73libbacktrace = ["backtrace-sys/backtrace-sys"]
74
75#=======================================
76# Methods of serialization
77#
78# Various features used for enabling rustc-serialize or syntex codegen.
79serialize-rustc = ["rustc-serialize"]
80serialize-serde = ["serde"]
81
82#=======================================
83# Deprecated/internal features
84#
85# Only here for backwards compatibility purposes or for internal testing
86# purposes. New code should use none of these features.
87coresymbolication = []
88dladdr = []
89kernel32 = []
90unix-backtrace = []
91libunwind = []
92dbghelp = []
93verify-winapi = [
94 'winapi/dbghelp',
95 'winapi/handleapi',
96 'winapi/libloaderapi',
97 'winapi/memoryapi',
98 'winapi/minwindef',
99 'winapi/processthreadsapi',
100 'winapi/synchapi',
101 'winapi/tlhelp32',
102 'winapi/winbase',
103 'winapi/winnt',
104]
105
106[[example]]
107name = "backtrace"
108required-features = ["std"]
109
110[[example]]
111name = "raw"
112required-features = ["std"]
113
114[[test]]
115name = "skip_inner_frames"
116required-features = ["std"]
117
118[[test]]
119name = "long_fn_name"
120required-features = ["std"]
121
122[[test]]
123name = "smoke"
124required-features = ["std"]
125edition = '2018'
126
127[[test]]
128name = "accuracy"
129required-features = ["std", "gimli-symbolize"]
130edition = '2018'
131
132[[test]]
133name = "concurrent-panics"
134required-features = ["std"]
135harness = false