Skip to content

Commit fb51548

Browse files
committed
for windows-msvc targets, dont use miniz_oxide, addr2line, object, libc
1 parent e1c49fb commit fb51548

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Cargo.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ exclude = [
2727
[dependencies]
2828
cfg-if = "1.0"
2929
rustc-demangle = "0.1.4"
30-
libc = { version = "0.2.146", default-features = false }
3130

3231
# Optionally enable the ability to serialize a `Backtrace`, controlled through
3332
# the `serialize-*` features below.
@@ -37,13 +36,11 @@ rustc-serialize = { version = "0.3", optional = true }
3736
# Optionally demangle C++ frames' symbols in backtraces.
3837
cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = ["alloc"] }
3938

40-
addr2line = { version = "0.20.0", default-features = false }
39+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
4140
miniz_oxide = { version = "0.7.0", default-features = false }
42-
43-
[dependencies.object]
44-
version = "0.31.1"
45-
default-features = false
46-
features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
41+
addr2line = { version = "0.20.0", default-features = false }
42+
object = { version = "0.31.1", default-features = false, features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] }
43+
libc = { version = "0.2.146", default-features = false }
4744

4845
[target.'cfg(windows)'.dependencies]
4946
winapi = { version = "0.3.9", optional = true }

0 commit comments

Comments
 (0)