blob: 809d15a264c4da8188cea243e8309476f462137b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
wasi::cli::command::export!(Example);
struct Example;
impl wasi::exports::cli::run::Guest for Example {
fn run() -> Result<(), ()> {
let stdout = wasi::cli::stdout::get_stdout();
stdout.blocking_write_and_flush(b"Hello, WASI!").unwrap();
Ok(())
}
}
|