//! Native entry point. The actual UI lives in `lib.rs` so the same
//! `Studio` is reused for the WASM build.

#![forbid(unsafe_code)]

#[cfg(not(target_arch = "wasm32"))]
fn main() -> eframe::Result {
    env_logger::init();
    let options = eframe::NativeOptions {
        viewport: eframe::egui::ViewportBuilder::default().with_inner_size([1280.0, 800.0]),
        ..Default::default()
    };
    eframe::run_native(
        "road_parceling_studio",
        options,
        Box::new(|_cc| Ok(Box::new(road_parceling_studio::Studio::default()))),
    )
}

#[cfg(target_arch = "wasm32")]
fn main() {
    // No-op on wasm32; the browser entrypoint lives in `lib.rs`.
}
