macro_rules! derive_wasm_abi {
($type:ty) => { ... };
($type:ty, FromWasmAbi $(, $symbols:tt)*) => { ... };
($type:ty, IntoWasmAbi $(, $symbols:tt)*) => { ... };
}Expand description
A macro for implementing the wasm_bindgen boilerplate for types which
implement serde::{Serialize, Deserialize}.
ยงExamples
struct MyStruct { .. }
derive_wasm_abi!(MyStruct, FromWasmAbi);
#[wasm_bindgen]
pub fn process_my_struct(s: MyStruct) {}