Skip to content

Commit e8d8356

Browse files
committed
chore: adapt to Wasmtime API changes
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 6603bd7 commit e8d8356

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

benches/bench.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use criterion::{BenchmarkGroup, Criterion};
1313
use futures::StreamExt as _;
1414
use tokio::select;
1515
use tokio::sync::oneshot;
16-
use wasmtime::component::{Component, Linker};
17-
use wasmtime_wasi::{IoView, ResourceTable, WasiCtx, WasiCtxBuilder, WasiView};
16+
use wasmtime::component::{Component, Linker, ResourceTable};
17+
use wasmtime_wasi::p2::{IoView, WasiCtx, WasiCtxBuilder, WasiView};
1818

1919
mod ping_bindings_wrpc {
2020
wit_bindgen_wrpc::generate!({
@@ -142,7 +142,7 @@ impl WasmHandler {
142142
let component = Component::new(&engine, wasm).context("failed to compile component")?;
143143

144144
let mut linker = Linker::<Ctx>::new(&engine);
145-
wasmtime_wasi::add_to_linker_async(&mut linker).context("failed to link WASI")?;
145+
wasmtime_wasi::p2::add_to_linker_async(&mut linker).context("failed to link WASI")?;
146146

147147
let pre = linker
148148
.instantiate_pre(&component)

0 commit comments

Comments
 (0)