This repository was home to the prototype implementation of Wasmtime's WASI Preview 2 support for 7 months. We have now landed almost all of this repository upstream:
-
Wasmtime issue #6370 describes the transition plan, and tracks its progress.
-
The component adapter, which used to live at the root of this repo and now lives at
crates/wasi-preview1-component-adapter
, has a new home atwasmtime/crates/wasi-preview1-component-adapter
. -
Published binaries of the component adapter can now be found in the Wasmtime
dev
tag assets underwasi_preview1_component_adapter.command.wasm
andwasi_preview1_component_adapter.reactor.wasm
. -
If you are invoking
wasm-tools component new
with the component adapter, you now need to specify the name to adapt iswasi_snapshot_preview1
, e.g.wasm-tools component new --adapt wasi_snapshot_preview1=./wasi_preview1_component_adapter.command.wasm
-
The host implementation of WASI Preview 2 was found in this repository's
wasi-common
crate. The new home is in thewasmtime-wasi
crate under thepreview2
module. -
If you were vendoring in the
wasi-common
from this repository, change your source code'suse wasi_common::{WasiCtxBuilder, WasiView, wasi::Command}
touse wasmtime_wasi::preview2::{WasiCtxBuilder, WasiView, wasi::Command}
to switch to the new implementation. -
If you are looking for the tests found under this repository's
host/tests
, those now live atwasmtime/crates/test-programs/tests
. -
If you are looking for the contents of this repository's
test-programs
, those now live underwasmtime/crates/test-programs
.
The wasi-sockets
implementation in this repository is still a work in
progress. It will land in Wasmtime in the future, but still lives here
for the time being.