14 lines
210 B
Rust
14 lines
210 B
Rust
|
mod bindings;
|
||
|
|
||
|
use bindings::Guest;
|
||
|
|
||
|
struct Component;
|
||
|
|
||
|
impl Guest for Component {
|
||
|
/// Say hello!
|
||
|
fn hello_world() -> String {
|
||
|
bindings::host_test();
|
||
|
"Hello, World!".to_string()
|
||
|
}
|
||
|
}
|