MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / main

Function main

examples/visual_node_graph/src/main.rs:6–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4// When compiling natively:
5#[cfg(not(target_arch = "wasm32"))]
6fn 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")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected