Skip to main content

wasm_object

Attribute Macro wasm_object 

Source
#[wasm_object]
Expand description

Declares a type that crosses the wasm ABI as an opaque handle, in place of #[cfg_attr(feature = "wasm", wasm_bindgen(..))] on a struct or an enum.

Arguments are forwarded to #[wasm_bindgen], so #[wasm_object(js_name = Ciphers)] behaves as it would there.

ⓘ
#[wasm_object]
#[derive(Clone)]
pub struct CiphersClient { client: Client }