chore: update to wasmtime 4.0.0 (#181)

This commit is contained in:
zach
2022-12-22 10:43:49 -08:00
committed by GitHub
parent 094f51ba2b
commit 8c2255eafa
2 changed files with 4 additions and 4 deletions

View File

@@ -9,9 +9,9 @@ repository = "https://github.com/extism/extism"
description = "Extism runtime component"
[dependencies]
wasmtime = "3.0.0"
wasmtime-wasi = "3.0.0"
wasmtime-wasi-nn = {version = "3.0.0", optional=true}
wasmtime = "4.0.0"
wasmtime-wasi = "4.0.0"
wasmtime-wasi-nn = {version = "4.0.0", optional=true}
anyhow = "1"
serde = {version = "1", features = ["derive"]}
serde_json = "1"

View File

@@ -279,7 +279,7 @@ impl Plugin {
// by calling the `hs_init` export
if let Some(init) = self.get_func("hs_init") {
if let Some(cleanup) = self.get_func("hs_exit") {
if init.typed::<(i32, i32), (), _>(&self.memory.store).is_err() {
if init.typed::<(i32, i32), ()>(&self.memory.store).is_err() {
trace!(
"hs_init function found with type {:?}",
init.ty(&self.memory.store)