From 43d69fc436706e6b8522fc21ca3b71a82e7bb133 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Fri, 26 Jul 2024 08:39:27 -0700 Subject: [PATCH] Disable windows console in release builds (#8) --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 14e7dd5..0e86250 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// disable console on windows for release builds +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + #[cfg(feature = "debugdump")] use std::{fs::File, io::Write};