From 4549440083d89db1262791c0e9b762e77d23f314 Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Fri, 25 Oct 2024 17:54:50 -0700 Subject: [PATCH] Fix pre-commit script --- ipa-core/src/lib.rs | 2 ++ pre-commit | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ipa-core/src/lib.rs b/ipa-core/src/lib.rs index 1ce693e01..345bbe0ae 100644 --- a/ipa-core/src/lib.rs +++ b/ipa-core/src/lib.rs @@ -344,6 +344,8 @@ macro_rules! mutually_incompatible { } mutually_incompatible!("in-memory-infra", "real-world-infra"); +#[cfg(not(any(compact_gate, descriptive_gate)))] +compile_error!("At least one of `compact_gate` or `descriptive_gate` features must be enabled"); #[cfg(test)] mod tests { diff --git a/pre-commit b/pre-commit index 9b1c5cb37..b5319ac91 100755 --- a/pre-commit +++ b/pre-commit @@ -106,7 +106,7 @@ then cargo test -p ipa-core --no-default-features --features "cli web-app real-world-infra test-fixture compact-gate" check "Web tests (descriptive gate)" \ - cargo test -p ipa-core --no-default-features --features "cli web-app real-world-infra test-fixture" + cargo test -p ipa-core --no-default-features --features "cli web-app real-world-infra test-fixture descriptive-gate" check "Concurrency tests" \ cargo test -p ipa-core --release --features "shuttle multi-threading"