Skip to main contentModule wasm_export
Source - apply_wasm_only π
- Applies
#[wasm_only], if present, returning the name the item had. - check_exportable π
- Rejects a generic item, which wasm_bindgen cannot export, and a leftover
#[wasm_bindgen]. - wasm_export π
- Applies
#[wasm_bindgen] to an impl block or a free function, forwarding this macroβs
arguments to it, and rewrites the methods marked #[wasm_only]. - wasm_export_fn π
#[wasm_export] on a free function, which carries a single #[wasm_bindgen(..)].- wasm_export_impl π
#[wasm_export] on an impl block: the block takes the attribute, and each method keeps the
#[wasm_bindgen(..)] it declares for itself.- wasm_only_note π
- Reads the deprecation note from
#[wasm_only] / #[wasm_only(note = "...")].