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)]
|
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-01-04 09:10:12 -06:00
|
|
|
let app = egui_template::TemplateApp::default();
|
|
|
|
eframe::run_native(Box::new(app));
|
2020-12-19 14:52:39 -06:00
|
|
|
}
|