]> git.proxmox.com Git - rustc.git/blob - library/backtrace/Cargo.toml
New upstream version 1.63.0+dfsg1
[rustc.git] / library / backtrace / Cargo.toml
1 [package]
2 name = "backtrace"
3 version = "0.3.65"
4 authors = ["The Rust Project Developers"]
5 build = "build.rs"
6 license = "MIT/Apache-2.0"
7 readme = "README.md"
8 repository = "https://github.com/rust-lang/backtrace-rs"
9 homepage = "https://github.com/rust-lang/backtrace-rs"
10 documentation = "https://docs.rs/backtrace"
11 description = """
12 A library to acquire a stack trace (backtrace) at runtime in a Rust program.
13 """
14 autoexamples = true
15 autotests = true
16 edition = "2018"
17
18 [workspace]
19 members = ['crates/cpp_smoke_test', 'crates/as-if-std']
20 exclude = [
21 'crates/without_debuginfo',
22 'crates/macos_frames_test',
23 'crates/line-tables-only',
24 'crates/debuglink',
25 ]
26
27 [dependencies]
28 cfg-if = "1.0"
29 rustc-demangle = "0.1.4"
30 libc = { version = "0.2.94", default-features = false }
31
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 }
36
37 # Optionally demangle C++ frames' symbols in backtraces.
38 cpp_demangle = { default-features = false, version = "0.3.0", optional = true }
39
40
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 }
45
46 [dependencies.object]
47 version = "0.28.0"
48 default-features = false
49 features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
50
51 [target.'cfg(windows)'.dependencies]
52 winapi = { version = "0.3.9", optional = true }
53
54 [build-dependencies]
55 # Only needed for Android, but cannot be target dependent
56 # https://github.com/rust-lang/cargo/issues/4932
57 cc = "1.0.67"
58
59 [dev-dependencies]
60 dylib-dep = { path = "crates/dylib-dep" }
61 libloading = "0.7"
62
63 [features]
64 # By default libstd support and gimli-symbolize is used to symbolize addresses.
65 default = ["std"]
66
67 # Include std support. This enables types like `Backtrace`.
68 std = []
69
70 #=======================================
71 # Methods of serialization
72 #
73 # Various features used for enabling rustc-serialize or syntex codegen.
74 serialize-rustc = ["rustc-serialize"]
75 serialize-serde = ["serde"]
76
77 #=======================================
78 # Deprecated/internal features
79 #
80 # Only here for backwards compatibility purposes or for internal testing
81 # purposes. New code should use none of these features.
82 coresymbolication = []
83 dbghelp = []
84 dladdr = []
85 gimli-symbolize = []
86 kernel32 = []
87 libbacktrace = []
88 libunwind = []
89 unix-backtrace = []
90 verify-winapi = [
91 'winapi/dbghelp',
92 'winapi/handleapi',
93 'winapi/libloaderapi',
94 'winapi/memoryapi',
95 'winapi/minwindef',
96 'winapi/processthreadsapi',
97 'winapi/synchapi',
98 'winapi/tlhelp32',
99 'winapi/winbase',
100 'winapi/winnt',
101 ]
102
103 [[example]]
104 name = "backtrace"
105 required-features = ["std"]
106
107 [[example]]
108 name = "raw"
109 required-features = ["std"]
110
111 [[test]]
112 name = "skip_inner_frames"
113 required-features = ["std"]
114
115 [[test]]
116 name = "long_fn_name"
117 required-features = ["std"]
118
119 [[test]]
120 name = "smoke"
121 required-features = ["std"]
122 edition = '2018'
123
124 [[test]]
125 name = "accuracy"
126 required-features = ["std"]
127 edition = '2018'
128
129 [[test]]
130 name = "concurrent-panics"
131 required-features = ["std"]
132 harness = false