Skip to main content

Module wasm_export

Module wasm_export 

Source

Structsยง

Shim ๐Ÿ”’
What the shim needs beyond the functionโ€™s own signature.

Functionsยง

apply_wasm_only ๐Ÿ”’
Applies #[wasm_only], if present, returning the JS-facing name.
build_shim ๐Ÿ”’
Builds the wasm shim for one method or free function.
check_exportable ๐Ÿ”’
Rejects a generic item, which wasm_bindgen cannot export, and a leftover #[wasm_bindgen].
take_shim ๐Ÿ”’
Builds one functionโ€™s shim, moving the #[wasm_bindgen(..)] it declares onto that shim.
wasm_export ๐Ÿ”’
Generates wire-converting #[wasm_bindgen] shims alongside the original item, which is left as written for Rust and UniFFI consumers.
wasm_export_fn ๐Ÿ”’
#[wasm_export] on a free function: the original is untouched, and a sibling shim is generated.
wasm_export_impl ๐Ÿ”’
#[wasm_export] on an impl block: a second impl block of shims is generated beside it.
wasm_only_note ๐Ÿ”’
Reads the deprecation note from #[wasm_only] / #[wasm_only(note = "...")].