egui/egui_demo_app/src/main.rs

16 lines
461 B
Rust
Raw Normal View History

// Forbid warnings in release builds:
#![cfg_attr(not(debug_assertions), deny(warnings))]
#![forbid(unsafe_code)]
2021-01-02 11:02:26 +00:00
#![warn(clippy::all, rust_2018_idioms)]
// When compiling natively:
fn main() {
2021-01-01 16:11:05 +00:00
let app = egui_demo_lib::WrapApp::default();
let options = eframe::NativeOptions {
// Let's show off that we support transparent windows
transparent: true,
..Default::default()
};
eframe::run_native(Box::new(app), options);
}