2020-12-19 14:52:39 -06:00
|
|
|
#![forbid(unsafe_code)]
|
|
|
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
2021-01-04 09:10:12 -06:00
|
|
|
#![warn(clippy::all, rust_2018_idioms)]
|
2022-03-22 02:31:14 -05:00
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] //Hide console window in release builds on Windows, this blocks stdout.
|
2020-12-19 14:52:39 -06:00
|
|
|
|
|
|
|
// When compiling natively:
|
2021-01-04 09:10:12 -06:00
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
2020-12-19 14:52:39 -06:00
|
|
|
fn main() {
|
2021-10-18 13:17:48 -05:00
|
|
|
let app = eframe_template::TemplateApp::default();
|
2021-05-10 11:40:49 -05:00
|
|
|
let native_options = eframe::NativeOptions::default();
|
|
|
|
eframe::run_native(Box::new(app), native_options);
|
2020-12-19 14:52:39 -06:00
|
|
|
}
|