cli: update run_wasm to use roc_wasm_interp

This commit is contained in:
Brian Carroll 2022-12-16 11:22:37 +00:00
parent 3ef171e620
commit eaf0211808
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 40 additions and 63 deletions

View file

@ -6,9 +6,10 @@ pub mod wasi;
// Main external interface
pub use instance::Instance;
pub use wasi::WasiDispatcher;
pub use wasi::{WasiDispatcher, WasiFile};
use roc_wasm_module::{Value, ValueType, WasmModule};
pub use roc_wasm_module::Value;
use roc_wasm_module::{ValueType, WasmModule};
use value_stack::ValueStack;
pub trait ImportDispatcher {
@ -31,7 +32,7 @@ impl Default for DefaultImportDispatcher<'_> {
}
pub struct DefaultImportDispatcher<'a> {
wasi: WasiDispatcher<'a>,
pub wasi: WasiDispatcher<'a>,
}
impl<'a> DefaultImportDispatcher<'a> {