Skip to content

Commit c24bd52

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

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ rustc-serialize = { version = "0.3", optional = true }
3737
# Optionally demangle C++ frames' symbols in backtraces.
3838
cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = ["alloc"] }
3939

40-
addr2line = { version = "0.20.0", default-features = false }
40+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
4141
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']
42+
addr2line = { version = "0.20.0", default-features = false }
43+
object = { version = "0.31.1", default-features = false, features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] }
4744

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

0 commit comments

Comments
 (0)