update wasmtime (#2710)

* update wasmtime

* update backtrace

* fix type

* update tokio
This commit is contained in:
Jakub Panek 2023-10-27 22:50:58 +01:00 committed by GitHub
parent 114fdd379a
commit 59510d7c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 536 additions and 382 deletions

910
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -60,9 +60,9 @@ grep-matcher = "0.1.6"
grep-regex = "0.1.9"
# wasm
wasmtime = "1.0.0"
wasmtime-wasi = "1.0.0"
wasi-common = "1.0.0"
wasmtime = "14.0.0"
wasmtime-wasi = "14.0.0"
wasi-common = "14.0.0"
[dependencies.wasi-experimental-http-wasmtime]
git = "https://github.com/lapce/wasi-experimental-http"

View File

@ -465,7 +465,7 @@ pub fn start_volt(
.get_func(&mut store, "handle_rpc")
.ok_or_else(|| anyhow!("can't convet to function"))
.unwrap()
.typed::<(), (), _>(&mut store)
.typed::<(), ()>(&mut store)
.unwrap();
for msg in io_rx {
if let Ok(msg) = serde_json::to_string(&msg) {