#![allow(clippy::unused_unit)] #![cfg(target_arch = "wasm32")] use wasm_bindgen::prelude::wasm_bindgen;
pub mod fs;
#[wasm_bindgen(js_name = "setPanicHook")]
pub fn set_panic_hook() {
#[cfg(feature = "console_error_panic_hook")]
console_error_panic_hook::set_once();
}
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_namespace = console)]
pub(crate) fn log(s: &str);
}
#[macro_export]
macro_rules! value {
($value:expr) => {
JsValue::from($value)
};
}
#[macro_export]
macro_rules! console_log {
($($t:tt)*) => ($crate::log(&format_args!($($t)*).to_string()))
}