17 lines
302 B
Rust
17 lines
302 B
Rust
use wasm_bindgen::prelude::*;
|
|
|
|
mod draw;
|
|
mod utils;
|
|
|
|
#[cfg(feature = "wee_alloc")]
|
|
#[global_allocator]
|
|
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
|
|
|
|
#[wasm_bindgen]
|
|
pub fn wasm_main() {
|
|
#[cfg(feature = "console_error_panic_hook")]
|
|
utils::set_panic_hook();
|
|
|
|
draw::run();
|
|
}
|