rust-webwasm/src/lib.rs

7 lines
95 B
Rust

use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn add(a: i32, b: i32) -> i32 {
a + b
}