machine_check_gui/
frontend.rs

1/// Logs to the frontend developer console.
2#[macro_export]
3macro_rules! console_log {
4    ($($arg:tt)*) => {
5        let a = ::std::format!($($arg)+);
6        let cons = ::web_sys::js_sys::Array::new_with_length(1);
7        cons.set(0, ::wasm_bindgen::JsValue::from_str(&a));
8        ::web_sys::console::log(&cons);
9    };
10}
11
12mod client;
13mod tiling;
14mod util;
15mod view;
16
17use wasm_bindgen::prelude::*;
18
19#[wasm_bindgen]
20pub async fn exec() {
21    std::panic::set_hook(Box::new(console_error_panic_hook::hook));
22
23    client::init().await;
24}