feat: added glue exports for kwm/qmc

This commit is contained in:
鲁树人
2024-09-07 13:13:39 +01:00
parent e7d8231474
commit 3292ad51ea
16 changed files with 398 additions and 241 deletions

View File

@@ -5,17 +5,8 @@ mod utils;
use utils::set_panic_hook;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
fn alert(s: &str);
}
/// Init panic hook
#[wasm_bindgen]
pub fn init() {
set_panic_hook();
}
#[wasm_bindgen]
pub fn greet() {
alert("hello world!");
}