[][src]Function wasmer_runtime_core_near::parse::read_module

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>

Read wasm binary into module data using the given backend, module code generator, middlewares, and compiler configuration.