Attribute Macro wasm_plugin_guest::export_function[][src]

#[export_function]

Builds an extern function which will handle serializing and deserializing of arguments and return values of the function it is applied to. The function must take only deserializable arguments and return a serializable result.

The name of the exported function will be mangled to wasm_plugin_exported__ORIGINAL_NAME The exported function is only intended to be used by wasm_plugin_host