mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 06:31: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)
|
wasm_binary = wabt::wat2wasm(wasm_binary)
|
||||||
.map_err(|e| format!("Can't convert from wast to wasm: {:?}", e))?;
|
.map_err(|e| format!("Can't convert from wast to wasm: {:?}", e))?;
|
||||||
}
|
}
|
||||||
|
@ -6,3 +6,4 @@ mod macros;
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub mod update;
|
pub mod update;
|
||||||
pub mod webassembly;
|
pub mod webassembly;
|
||||||
|
pub mod utils;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
pub mod utils;
|
|
||||||
|
|
||||||
use std::panic;
|
use std::panic;
|
||||||
use wasmer_runtime::{
|
use wasmer_runtime::{
|
||||||
self as runtime,
|
self as runtime,
|
Reference in New Issue
Block a user