Export add(a,b) directly with #[no_mangle] extern "C".
Without wasm-bindgen, write #[no_mangle] pub extern "C" fn add(a: i32, b: i32) -> i32 { a + b } — the function name becomes a wasm export.Sign in to save your code and track progress across devices.