1 2 3 4 5 6 7 8 9
wai_bindgen_rust::export!("calc.exports.wai"); struct Calc; impl calc::Calc for Calc { fn add(a: f32, b: f32) -> f32 { a + b } }