CI: fix Zstd building on some targets

This commit is contained in:
Vinícius Rodrigues Miguel 2021-10-06 22:30:54 -03:00
parent 8bf087bbd7
commit 2189574404

View File

@ -23,8 +23,20 @@ tar = "0.4.37"
xz2 = "0.1.6"
zip = { version = "0.5.13", default-features = false, features = ["deflate-miniz"] }
flate2 = { version = "1.0.22", default-features = false, features = ["zlib"] }
[target.'cfg(all(target_family = "unix", target_arch = "x86_64"))'.dependencies]
zstd = { version = "0.9.0", default-features = false, features = ["thin"] }
[target.'cfg(any(target_arch = "arm", target_arch = "aarch64"))'.dependencies]
zstd = { version = "0.9.0" }
[target.'cfg(all(target_family = "windows", target_arch = "x86_64"))'.dependencies]
zstd = { version = "0.9.0" }
[target.'cfg(target_family = "x86-64")'.dependencies]
[target.'cfg(all(target_arch = "x86-64", not(target_os = "windows")))'.dependencies]
[dev-dependencies]
tempfile = "3.2.0"
rand = { version = "0.8.3", default-features = false, features = ["small_rng", "std"] }