diff options
Diffstat (limited to '')
-rw-r--r-- | libs/zora-rs/src/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/zora-rs/src/lib.rs b/libs/zora-rs/src/lib.rs new file mode 100644 index 0000000..239f3af --- /dev/null +++ b/libs/zora-rs/src/lib.rs @@ -0,0 +1,13 @@ +mod utils; + +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +extern "C" { + fn alert(s: &str); +} + +#[wasm_bindgen] +pub fn greet() { + alert("Hello, zora-rs!"); +} |