From 6adcda0f7665dc800f358107694b5674f8c37f1c Mon Sep 17 00:00:00 2001 From: Boni Garcia Date: Fri, 17 May 2024 15:21:46 -0700 Subject: [PATCH] [rust] Force windows-sys to 0.52.0 --- rust/Cargo.Bazel.lock | 12 ++++++++++-- rust/Cargo.lock | 1 + rust/Cargo.toml | 5 ++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/rust/Cargo.Bazel.lock b/rust/Cargo.Bazel.lock index 386bab76d2581..b8f486eba7623 100644 --- a/rust/Cargo.Bazel.lock +++ b/rust/Cargo.Bazel.lock @@ -1,5 +1,5 @@ { - "checksum": "d8671aa04f5cd21901de59f80188b5fa42024b948d0efab13eb8b24310ff43fa", + "checksum": "75a55a1e7a70d22f18984be24628f9c1826d96ac4319968ce1602ae1b2369904", "crates": { "addr2line 0.21.0": { "name": "addr2line", @@ -13622,7 +13622,14 @@ "target": "zip" } ], - "selects": {} + "selects": { + "cfg(target_os = \"windows\")": [ + { + "id": "windows-sys 0.52.0", + "target": "windows_sys" + } + ] + } }, "deps_dev": { "common": [ @@ -21635,6 +21642,7 @@ "tokio 1.37.0", "toml 0.8.13", "walkdir 2.5.0", + "windows-sys 0.52.0", "zip 1.3.0" ], "direct_dev_deps": [ diff --git a/rust/Cargo.lock b/rust/Cargo.lock index f0e820d6d12d0..eb9a10391a4be 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1828,6 +1828,7 @@ dependencies = [ "tokio", "toml", "walkdir", + "windows-sys 0.52.0", "zip", ] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 5cf73e3932a70..852cd56edd551 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -19,7 +19,7 @@ regex = "1.10.4" tokio = { version = "1.37.0", default-features = false, features = ["macros", "net", "rt-multi-thread"] } tempfile = "3.10.1" reqwest = { version = "0.12.4", default-features = false, features = ["rustls-tls"] } -zip = { version = "1.3.0", default-features = false, features = ["deflate-zlib"]} +zip = { version = "1.3.0", default-features = false, features = ["deflate-zlib"] } directories = "5.0.1" serde = { version = "1.0.202", features = ["derive"] } serde_json = "1.0.117" @@ -36,6 +36,9 @@ debpkg = "0.6.0" anyhow = { version = "1.0.84", default-features = false, features = ["backtrace" , "std"] } apple-flat-package = "0.18.0" +[target.'cfg(target_os = "windows")'.dependencies] +windows-sys = "0.52.0" + [dev-dependencies] assert_cmd = "2.0.14" rstest = "0.19.0"