From f6f985d023bdcae0a9551a8abf0513cf0c7f8066 Mon Sep 17 00:00:00 2001 From: sivadeilra Date: Wed, 19 Jun 2024 13:49:34 -0700 Subject: [PATCH] Don't compile `windows` and `windows-sys` in unit test mode (#3112) --- crates/libs/sys/Cargo.toml | 5 +++++ crates/libs/windows/Cargo.toml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/crates/libs/sys/Cargo.toml b/crates/libs/sys/Cargo.toml index 8f67ab37ab..c121d1055f 100644 --- a/crates/libs/sys/Cargo.toml +++ b/crates/libs/sys/Cargo.toml @@ -11,6 +11,11 @@ readme = "readme.md" categories = ["os::windows-apis"] exclude = ["features.json"] +[lib] +# This crate does not contain tests. All tests are in separate crates. +test = false +doctest = false + [lints] workspace = true diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index f1a15b9f9d..cec03168ca 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -13,6 +13,11 @@ readme = "readme.md" categories = ["os::windows-apis"] exclude = ["features.json"] +[lib] +# This crate does not contain tests. All tests are in separate crates. +test = false +doctest = false + [lints] workspace = true