Add example wasm component and runner which embeds the component

This commit is contained in:
michaelpivato
2024-05-11 14:22:49 +09:30
commit fca84b9240
10 changed files with 1560 additions and 0 deletions

14
component/src/lib.rs Normal file
View File

@@ -0,0 +1,14 @@
#[allow(warnings)]
mod bindings;
use bindings::{hello, Guest};
struct Component;
impl Guest for Component {
fn greet() {
hello();
}
}
bindings::export!(Component with_types_in bindings);