mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-16 17:18:57 +00:00
Fix bug in wasmer_module_new
This commit is contained in:
@@ -1720,7 +1720,7 @@ fn try_autoinstall_zig() -> Option<PathBuf> {
|
||||
}
|
||||
|
||||
#[cfg(feature = "http")]
|
||||
fn install_zig(target_targz_path: &PathBuf) -> Option<PathBuf> {
|
||||
fn install_zig(target_targz_path: &Path) -> Option<PathBuf> {
|
||||
let resp = reqwest::blocking::get("https://ziglang.org/download/index.json");
|
||||
let resp = resp.ok()?;
|
||||
let resp = resp.json::<ZiglangOrgJson>();
|
||||
|
||||
@@ -14,7 +14,7 @@ extern size_t VOLUMES_LENGTH asm("VOLUMES_LENGTH");
|
||||
extern char VOLUMES_DATA asm("VOLUMES_DATA");
|
||||
#endif
|
||||
|
||||
extern wasm_module_t* wasmer_module_new(wasm_store_t* store) asm("wasmer_module_new");
|
||||
extern wasm_module_t* wasmer_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_module_new");
|
||||
extern wasm_module_t* wasmer_static_module_new(wasm_store_t* store,const char* wasm_name) asm("wasmer_static_module_new");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user