Skip to content

Commit

Permalink
chore: add risp.wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
skanehira committed Nov 23, 2023
1 parent 30fc64d commit b86d071
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/risp.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use anyhow::Result;
use chibiwasm::wasi::WasiSnapshotPreview1;
use chibiwasm::Runtime;

fn main() -> Result<()> {
let wasi = WasiSnapshotPreview1::default();
let mut runtime = Runtime::from_file("examples/risp.wasm", Some(Box::new(wasi)))?;
runtime.call("_start".into(), vec![])?;
Ok(())
}
Binary file added examples/risp.wasm
Binary file not shown.

0 comments on commit b86d071

Please sign in to comment.