diff --git a/src/main.rs b/src/main.rs index bb181aecf..fd75ee802 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,11 +76,11 @@ fn execute_wasm(wasm_path: PathBuf) -> Result<(), String> { webassembly::instantiate(wasm_binary, import_object) .map_err(|err| format!("Can't instantiate the WebAssembly module: {}", err))?; - webassembly::utils::print_instance_offsets(&instance); + // webassembly::utils::print_instance_offsets(&instance); let func_index = instance .start_func - .unwrap_or_else(|| match module.info.exports.get("main") { + .unwrap_or_else(|| match module.info.exports.get("main").or(module.info.exports.get("_main")) { Some(&webassembly::Export::Function(index)) => index, _ => panic!("Main function not found"), });