From b609f86bdebe2586093ddf444eb0415b76d9afb6 Mon Sep 17 00:00:00 2001 From: timvisee Date: Mon, 30 Jan 2023 18:06:28 +0100 Subject: [PATCH] Require to build with rcon feature on Windows --- build.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..ec12475 --- /dev/null +++ b/build.rs @@ -0,0 +1,7 @@ +fn main() { + // rcon is required on Windows + #[cfg(all(windows, not(feature = "rcon")))] + { + compile_error!("required feature missing on Windows: rcon"); + } +}