()
| 4 | // When compiling natively: |
| 5 | #[cfg(not(target_arch = "wasm32"))] |
| 6 | fn main() -> eframe::Result<()> { |
| 7 | tracing::subscriber::set_global_default( |
| 8 | tracing_subscriber::FmtSubscriber::builder() |
| 9 | .with_max_level(tracing::Level::DEBUG) |
| 10 | .finish(), |
| 11 | ) |
| 12 | .unwrap(); |
| 13 | |
| 14 | let native_options = eframe::NativeOptions { |
| 15 | viewport: egui::ViewportBuilder::default() |
| 16 | .with_inner_size([900.0, 600.0]) |
| 17 | .with_min_inner_size([300.0, 220.0]), |
| 18 | vsync: true, |
| 19 | ..Default::default() |
| 20 | }; |
| 21 | |
| 22 | eframe::run_native( |
| 23 | "firewheel visual node graph demo", |
| 24 | native_options, |
| 25 | Box::new(|_| Ok(Box::new(ui::DemoApp::new()))), |
| 26 | ) |
| 27 | } |
| 28 | |
| 29 | // When compiling to web using trunk: |
| 30 | #[cfg(target_arch = "wasm32")] |
nothing calls this directly
no outgoing calls
no test coverage detected