Crate extism_pdk_derive

Source

Attribute Macrosยง

host_fn
host_fn is used to import a host function from an extern block
plugin_fn
plugin_fn is used to define an Extism callable function to export
shared_fn
shared_fn is used to define a function that will be exported by a plugin but is not directly callable by an Extism runtime. These functions can be used for runtime linking and mocking host functions for tests. If direct access to Wasm native parameters is needed, then a bare extern "C" fn should be used instead.