Crates.io | wasm_plugin_guest |
lib.rs | wasm_plugin_guest |
version | 0.1.5 |
source | src |
created_at | 2021-03-03 18:47:30.443333 |
updated_at | 2021-05-01 19:31:15.989972 |
description | A low-ish level tool for easily writing WASM based plugins |
homepage | |
repository | https://github.com/alec-deason/wasm_plugin/tree/main/guest |
max_upload_size | |
id | 363306 |
size | 7,764 |
A low-ish level tool for easily writing WASM based plugins to be hosted by wasm_plugin_host.
The goal of wasm_plugin is to make communicating across the host-plugin boundary as simple and idiomatic as possible while being unopinionated about how you actually use the plugin.
Plugins are meant to be run using wasm_plugin_host
Exporting a function is just a matter of adding an attribute.
#[wasm_plugin_guest::export_function]
fn hello() -> String {
"Hello, host!".to_string()
}
I am not currently guaranteeing any stability, expect all releases to include breaking changes.