wasmtime-wiggle-macro: re-use Names functionality

rather than try to duplicate it in utils
This commit is contained in:
Pat Hickey
2020-06-22 18:47:21 -07:00
parent 185701df1b
commit 1050c6d99c
4 changed files with 25 additions and 16 deletions

View File

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