cargo cleanup; remove wee allocator; license
This commit is contained in:
parent
ea488c7eba
commit
1d04a7139f
3 changed files with 6 additions and 18 deletions
|
@ -2,12 +2,6 @@ mod utils;
|
|||
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
|
||||
// allocator.
|
||||
#[cfg(feature = "wee_alloc")]
|
||||
#[global_allocator]
|
||||
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
|
||||
|
||||
#[wasm_bindgen]
|
||||
extern {
|
||||
fn alert(s: &str);
|
||||
|
@ -15,5 +9,7 @@ extern {
|
|||
|
||||
#[wasm_bindgen]
|
||||
pub fn greet() {
|
||||
utils::set_panic_hook();
|
||||
|
||||
alert("Hello, gpx-web-utils!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue