
1.51.0 clippy has been giving me trouble (not reporting all problems), and so I take the easy way out and just bump MSRV. We will upgrade to 1.56.0 once it comes around anyway to get access to that sweet disjoint capture in closures (https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html)
15 lines
461 B
Rust
15 lines
461 B
Rust
// Forbid warnings in release builds:
|
|
#![cfg_attr(not(debug_assertions), deny(warnings))]
|
|
#![forbid(unsafe_code)]
|
|
#![warn(clippy::all, rust_2018_idioms)]
|
|
|
|
// When compiling natively:
|
|
fn main() {
|
|
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);
|
|
}
|