#![recursion_limit="1024"] extern crate wee_alloc; extern crate console_error_panic_hook; use wasm_bindgen::prelude::*; use yew::prelude::App; use std::panic; use view::main::MainView; // Use `wee_alloc` as the global allocator. #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; mod view; fn init() { panic::set_hook(Box::new(console_error_panic_hook::hook)); } #[wasm_bindgen(start)] pub fn run_app() { init(); App::::new().mount_to_body(); }