wasi 0.14.7+wasi-0.2.4

WASI API bindings for Rust
Documentation
1
2
3
4
5
6
7
use std::io::Write as _;

fn main() {
    let mut stdout = wasip2::cli::stdout::get_stdout();
    stdout.write_all(b"Hello, world!\n").unwrap();
    stdout.flush().unwrap();
}