()
| 22 | .with_min_inner_size([900.0, 680.0]), |
| 23 | ..Default::default() |
| 24 | }; |
| 25 | eframe::run_native( |
| 26 | "Full-Stack", |
| 27 | native_options, |
| 28 | Box::new(|cc| Ok(Box::new(app::FullStackApp::new(cc)))), |
| 29 | ) |
| 30 | } |
| 31 | |
| 32 | // When compiling to web using trunk: |
| 33 | #[cfg(target_arch = "wasm32")] |
| 34 | fn main() { |
| 35 | use eframe::wasm_bindgen::JsCast as _; |
| 36 | |
| 37 | // Info: debug-level compiler tracing floods the browser console (and jank) |
| 38 | // on every in-browser build. |
| 39 | eframe::WebLogger::init(log::LevelFilter::Info).ok(); |
| 40 | |
| 41 | let mut web_options = eframe::WebOptions::default(); |
| 42 | // Chromium on Windows ignores explicit GPU preferences and logs a warning. |
| 43 | if let eframe::egui_wgpu::WgpuSetup::CreateNew(setup) = &mut web_options.wgpu_options.wgpu_setup |
nothing calls this directly
no outgoing calls
no test coverage detected