From 899d6378cd7bfde4724df3ea602e012ca9937455 Mon Sep 17 00:00:00 2001 From: Mathieu Amiot Date: Fri, 10 Jul 2020 17:09:21 +0200 Subject: [PATCH] Added early fail on other platforms than Windows --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 067f58a..ea4b844 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,11 @@ use log::info; +#[cfg(not(windows))] +fn main() { + panic!("This software is only compatible with Windows."); +} + +#[cfg(windows)] fn main() { std::env::set_var("RUST_LOG", "info"); pretty_env_logger::init();