You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wit-bindgen has recently been changed to only generate guest-side code. Host-side code must now be generated by separate crates specific for each Wasm runtime. Also, the generated host code didn't support reentrant calls.
Solution
Create a new crate to generate the host side code for both the Wasmer and Wasmtime runtimes and that supports reentrant calls.
The new crate should also use Rust code as the source-of-truth, and support generating WIT files for wit-bindgen to use to generate the guest code.
Merge plan
Since this new crate is non-trivial, merging it will be split into several PRs.
Motivation
wit-bindgen
has recently been changed to only generate guest-side code. Host-side code must now be generated by separate crates specific for each Wasm runtime. Also, the generated host code didn't support reentrant calls.Solution
Create a new crate to generate the host side code for both the Wasmer and Wasmtime runtimes and that supports reentrant calls.
The new crate should also use Rust code as the source-of-truth, and support generating WIT files for
wit-bindgen
to use to generate the guest code.Merge plan
Since this new crate is non-trivial, merging it will be split into several PRs.
WitType
trait (Create theWitType
trait #890)WitLoad
trait (Create aWitLoad
trait #908)WitStore
trait (Create aWitStore
trait #915)enum
s (Add support for WIT variants #921)wit_import
macro (Addwit_import
attribute macro to import functions from Wasm modules #944)wit_export
macro (Addwit_export
attribute macro to export host functions to Wasm modules #955)WitInterface
trait to allow creating of WIT interface snippets #1902The text was updated successfully, but these errors were encountered: