use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { #[wasm_bindgen] pub fn foo() -> Result; } fn main() {}