1 2 3 4 5 6 7 8 9 10 11
use wasm_bindgen::prelude::*; struct A; #[wasm_bindgen] extern "C" { #[wasm_bindgen] pub fn foo(a: A); } fn main() {}