15 lines
199 B
Rust
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!");
|
|
}
|