Polyfill adapter for preview1-using wasm modules to call preview2 functions.
Rust
75
242 commits
updated Sep 20, 2023
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 at
wasmtime/crates/wasi-preview1-component-adapter.
Published binaries of the component adapter can now be found in the
Wasmtime dev tag
assets
under wasi_preview1_component_adapter.command.wasm
and wasi_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 is wasi_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 the
wasmtime-wasi crate under the preview2 module.
If you were vendoring in the wasi-common from this repository, change your
source code's use wasi_common::{WasiCtxBuilder, WasiView, wasi::Command}
to use 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 at
wasmtime/crates/test-programs/tests.
If you are looking for the contents of this repository's test-programs,
those now live under
wasmtime/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.
Rust
100.0%
Polyfill adapter for preview1-using wasm modules to call preview2 functions.
Rust
75
242 commits
updated Sep 20, 2023
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 at
wasmtime/crates/wasi-preview1-component-adapter.
Published binaries of the component adapter can now be found in the
Wasmtime dev tag
assets
under wasi_preview1_component_adapter.command.wasm
and wasi_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 is wasi_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 the
wasmtime-wasi crate under the preview2 module.
If you were vendoring in the wasi-common from this repository, change your
source code's use wasi_common::{WasiCtxBuilder, WasiView, wasi::Command}
to use 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 at
wasmtime/crates/test-programs/tests.
If you are looking for the contents of this repository's test-programs,
those now live under
wasmtime/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.
Rust
100.0%