Skip to content

Commit 22c918a

Browse files
committed
miniz_oxide and it's deps used only on non windows-msvc targets, so gate it
1 parent e1c49fb commit 22c918a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ rustc-serialize = { version = "0.3", optional = true }
3838
cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = ["alloc"] }
3939

4040
addr2line = { version = "0.20.0", default-features = false }
41-
miniz_oxide = { version = "0.7.0", default-features = false }
4241

4342
[dependencies.object]
4443
version = "0.31.1"
4544
default-features = false
4645
features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
4746

47+
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
48+
miniz_oxide = { version = "0.7.0", default-features = false }
49+
4850
[target.'cfg(windows)'.dependencies]
4951
winapi = { version = "0.3.9", optional = true }
5052

0 commit comments

Comments
 (0)