Refactored webassembly module

This commit is contained in:
Syrus
2019-01-24 15:09:56 -08:00
parent 762405f6e9
commit 5ed202342e
4 changed files with 2 additions and 3 deletions

View File

@ -61,7 +61,7 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
)
})?;
if !webassembly::utils::is_wasm_binary(&wasm_binary) {
if !utils::is_wasm_binary(&wasm_binary) {
wasm_binary = wabt::wat2wasm(wasm_binary)
.map_err(|e| format!("Can't convert from wast to wasm: {:?}", e))?;
}

View File

@ -6,3 +6,4 @@ mod macros;
#[macro_use]
pub mod update;
pub mod webassembly;
pub mod utils;

View File

@ -1,5 +1,3 @@
pub mod utils;
use std::panic;
use wasmer_runtime::{
self as runtime,