2021-12-30 21:43:53 +00:00
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
|
|
|
|
2021-06-23 07:16:39 +00:00
|
|
|
// Forbid warnings in release builds:
|
|
|
|
#![cfg_attr(not(debug_assertions), deny(warnings))]
|
2021-04-15 08:35:15 +00:00
|
|
|
#![forbid(unsafe_code)]
|
2021-01-02 11:02:26 +00:00
|
|
|
#![warn(clippy::all, rust_2018_idioms)]
|
2020-07-23 10:01:48 +00:00
|
|
|
|
2020-12-19 20:30:51 +00:00
|
|
|
// When compiling natively:
|
2020-07-23 10:01:48 +00:00
|
|
|
fn main() {
|
2022-02-01 11:27:39 +00:00
|
|
|
// Log to stdout (if you run with `RUST_LOG=debug`).
|
|
|
|
tracing_subscriber::fmt::init();
|
|
|
|
|
2021-01-01 16:11:05 +00:00
|
|
|
let app = egui_demo_lib::WrapApp::default();
|
2021-05-08 08:14:56 +00:00
|
|
|
let options = eframe::NativeOptions {
|
|
|
|
// Let's show off that we support transparent windows
|
2022-01-17 13:32:16 +00:00
|
|
|
transparent: true,
|
2021-09-30 17:40:21 +00:00
|
|
|
drag_and_drop_support: true,
|
2021-05-08 08:14:56 +00:00
|
|
|
..Default::default()
|
|
|
|
};
|
|
|
|
eframe::run_native(Box::new(app), options);
|
2020-07-23 10:01:48 +00:00
|
|
|
}
|