paramaterize the instance type name as well

This commit is contained in:
Pat Hickey
2020-06-22 19:01:29 -07:00
parent 09971bc090
commit 6adbae3007
3 changed files with 47 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ pub use wasi_common::{WasiCtx, WasiCtxBuilder};
wasmtime_wiggle::define_struct_for_wiggle!({
witx: ["../wasi-common/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"],
ctx: WasiCtx,
instance: Wasi,
});
pub fn is_wasi_module(name: &str) -> bool {