mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 14:11:32 +00:00
Refactored webassembly module
This commit is contained in:
@ -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))?;
|
||||
}
|
||||
|
@ -6,3 +6,4 @@ mod macros;
|
||||
#[macro_use]
|
||||
pub mod update;
|
||||
pub mod webassembly;
|
||||
pub mod utils;
|
||||
|
@ -1,5 +1,3 @@
|
||||
pub mod utils;
|
||||
|
||||
use std::panic;
|
||||
use wasmer_runtime::{
|
||||
self as runtime,
|
Reference in New Issue
Block a user