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