Skip to content

Commit 8bb67c7

Browse files
committed
for windows-msvc targets, dont use miniz_oxide, addr2line, object, libc
1 parent 3479721 commit 8bb67c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Cargo.toml

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

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

41-
addr2line = { version = "0.21.0", default-features = false }
40+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
4241
miniz_oxide = { version = "0.7.0", default-features = false }
42+
addr2line = { version = "0.21.0", default-features = false }
43+
libc = { version = "0.2.146", default-features = false }
4344

44-
[dependencies.object]
45+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object]
4546
version = "0.32.0"
4647
default-features = false
4748
features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']

0 commit comments

Comments
 (0)