Add example wasm component and runner which embeds the component
This commit is contained in:
14
component/src/lib.rs
Normal file
14
component/src/lib.rs
Normal 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);
|
||||
Reference in New Issue
Block a user