Function wasmer_runtime_core_near::parse::read_module
source · [−]pub fn read_module<MCG: ModuleCodeGenerator<FCG, RM, E>, FCG: FunctionCodeGenerator<E>, RM: RunnableModule, E: Debug>(
wasm: &[u8],
mcg: &mut MCG,
middlewares: &mut MiddlewareChain,
compiler_config: &CompilerConfig
) -> Result<Arc<RwLock<ModuleInfo>>, LoadError>
Expand description
Read wasm binary into module data using the given backend, module code generator, middlewares, and compiler configuration.