Skip to content

Commit be8210a

Browse files
committed
changes to wasmtime-wasi crate layout
1 parent e6bffe2 commit be8210a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ use {
2222
Config, Engine, Store,
2323
},
2424
wasmtime_wasi::{
25-
pipe::{MemoryInputPipe, MemoryOutputPipe},
26-
DirPerms, FilePerms, IoView, WasiCtx, WasiCtxBuilder, WasiView,
25+
p2::{
26+
pipe::{MemoryInputPipe, MemoryOutputPipe},
27+
IoView, WasiCtx, WasiCtxBuilder, WasiView,
28+
},
29+
DirPerms, FilePerms,
2730
},
2831
wit_parser::{Resolve, TypeDefKind, UnresolvedPackageGroup, WorldId, WorldItem, WorldKey},
2932
};
@@ -585,7 +588,7 @@ fn add_wasi_and_stubs(
585588
worlds: &IndexSet<WorldId>,
586589
linker: &mut Linker<Ctx>,
587590
) -> Result<()> {
588-
wasmtime_wasi::add_to_linker_async(linker)?;
591+
wasmtime_wasi::p2::add_to_linker_async(linker)?;
589592

590593
enum Stub<'a> {
591594
Function(&'a String),

0 commit comments

Comments
 (0)