mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 14:18:20 +00:00
Unify Instance in js/sys
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
use crate::errors::InstantiationError;
|
||||
use crate::imports::Imports;
|
||||
#[cfg(feature = "wat")]
|
||||
use crate::js::error::WasmError;
|
||||
use crate::js::externals::Extern;
|
||||
use crate::js::vm::VMInstance;
|
||||
use crate::js::AsJs;
|
||||
@@ -60,6 +58,8 @@ pub struct Module {
|
||||
raw_bytes: Option<Bytes>,
|
||||
}
|
||||
|
||||
unsafe impl Send for Module {}
|
||||
|
||||
impl Module {
|
||||
/// Creates a new WebAssembly module from a file path.
|
||||
pub fn from_file(
|
||||
|
||||
Reference in New Issue
Block a user