Hide console window in release builds on Windows (#53)

This commit is contained in:
NHodgesVFX 2022-03-22 03:31:14 -04:00 committed by GitHub
parent 5729bc025b
commit 86fe7b7b87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
#![forbid(unsafe_code)]
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
#![warn(clippy::all, rust_2018_idioms)]
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] //Hide console window in release builds on Windows, this blocks stdout.
// When compiling natively:
#[cfg(not(target_arch = "wasm32"))]