nordisk/monetize
crates/monetize-ui-web/src/main.rs
//! Mount point. Gated on `wasm32` so the crate still builds for the host target.
#[cfg(target_arch = "wasm32")]
fn main() {
console_error_panic_hook::set_once();
leptos::mount::mount_to_body(monetize_ui_web::App);
}
#[cfg(not(target_arch = "wasm32"))]
fn main() {
eprintln!("monetize-ui-web is a WebAssembly binary; build it with `trunk build`");
}