From e0db481597c2bc311638118caf52a15bb06c8cfc Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Thu, 4 Jul 2024 16:25:36 -0700 Subject: [PATCH] Disable console on Windows for release builds --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 668b2080..9c64e2b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,9 @@ // Feel free to delete this line. #![allow(clippy::too_many_arguments, clippy::type_complexity)] +// Disable console on Windows for release builds. +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + use bevy::asset::AssetMetaCheck; use bevy::prelude::*;