wasm_nn/lib.rs
1/// A library for doing stuff with numbers.
2mod utils;
3mod tensor;
4
5use wasm_bindgen::prelude::*;
6
7// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
8// allocator.
9#[cfg(feature = "wee_alloc")]
10#[global_allocator]
11static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
12
13#[wasm_bindgen]
14extern "C" {
15 fn alert(s: &str);
16}
17
18#[wasm_bindgen]
19pub fn greet() {
20 alert("Hello, {{project-name}}!");
21}