From 21895744044c55e10e532608ad21db6791b59d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Rodrigues=20Miguel?= Date: Wed, 6 Oct 2021 22:30:54 -0300 Subject: [PATCH] CI: fix Zstd building on some targets --- Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 411e0a9..1342702 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] }