Empty backend library generated from wasm-pack-template

This commit is contained in:
Jack Grigg
2019-06-10 23:50:38 +01:00
parent 27e5eedc6b
commit cb6d4ed68c
11 changed files with 432 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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);
}
#[wasm_bindgen]
pub fn greet() {
alert("Hello, zcash-client-backend-wasm!");
}