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() {
|
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
|
|
|
|
transparent: true,
|
|
|
|
..Default::default()
|
|
|
|
};
|
|
|
|
eframe::run_native(Box::new(app), options);
|
2020-07-23 10:01:48 +00:00
|
|
|
}
|