gpx-web-utils/src/lib.rs
2020-10-28 09:30:55 -07:00

15 lines
199 B
Rust

mod utils;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
fn alert(s: &str);
}
#[wasm_bindgen]
pub fn greet() {
utils::set_panic_hook();
alert("Hello, gpx-web-utils!");
}