wit-bindgen
wit-bindgen copied to clipboard
A language binding generator for WebAssembly interface types
In some cases (such as python), the generated bindings make use of local variables such as "i", "len", and "base". If you use these names in your WIT file as...
Automatically generate `*.wit` bindings from any language, like Rust. It becomes tedious (or borderline impossible) to manually write bindings for any kind of complex code. This is already a well-known...
- [ ] https://github.com/WebAssembly/component-model/issues/60 Eventually, this should be defined by the component model, and the syntax by the definition of wit.
Consider the following WIT files ```go use { info } from info hey: func(i: info) -> info ``` ```go record info { infoa: string, infob: string, } ``` The following...
Implementation for #162 it makes the duplicate identifier checking more general. A few tests have duplication that had to be resolved, I chose to do so by appending `-func` to...
https://github.com/bytecodealliance/wit-bindgen/pull/269 adds support for parsing the `future` type. There are many `todo!`s left for the implementation in the canonical ABI and bindings implementations.
One thing I've noticed that is a "gotcha" for people exploring and using wit-bindgen is that it doesn't consistently use the guest/host terminology throughout its crate folders and names. This...
@sunfishcode is the discussion in https://github.com/WebAssembly/WASI/issues/19 relevant to this one?