This commit is contained in:
2020-01-30 21:39:38 +08:00
parent 85b24c3ac6
commit 013b21b10f
3 changed files with 58 additions and 0 deletions

10
wasi/src/main.rs Normal file
View File

@@ -0,0 +1,10 @@
use std::fs::File;
use std::io::prelude::*;
fn main() -> std::io::Result<()> {
let mut file = File::create("foo.txt")?;
file.write_all(b"Hello, world!")?;
println!("Hello, world!");
Ok(())
}