Skip to main content

Module wasm_export

Module wasm_export 

Source

FunctionsΒ§

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 = "...")].