From 3a67fcc81c6c01baa6544c6f84d2e978535d1c45 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Fri, 5 Sep 2025 13:14:12 -0700 Subject: [PATCH] fix windows x64 builds --- Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 797ef62..14cb21a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,7 +65,6 @@ smallvec = { version = "1", features = [ tracing = "0.1.41" indicatif = { version = "0.17", features = ["improved_unicode"] } rayon = "1.10" -sha1 = { version = "0.10.6", features = ["asm"] } hex = "0.4.3" vectorscan-rs = "0.0.5" regex = "1.11.1" @@ -191,11 +190,16 @@ ed25519-dalek = { version = "2.2", features = ["pkcs8"] } aws-sdk-s3 = "1.100.0" tokei = "12.1.2" +[target.'cfg(not(windows))'.dependencies] +sha1 = { version = "0.10.6", features = ["asm"] } + +[target.'cfg(windows)'.dependencies] +sha1 = "0.10.6" + [dependencies.tikv-jemallocator] version = "0.6" optional = true - [features] default = ["use-mimalloc"] use-mimalloc = ["mimalloc/override"]