Skip to content

Commit

Permalink
Added early fail on other platforms than Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Amiot committed Jul 10, 2020
1 parent fec8a09 commit 899d637
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 899d637

Please sign in to comment.