wit-bindgen
wit-bindgen copied to clipboard
A language binding generator for WebAssembly interface types
The generated JS class contains methods for the module itself, and an `instanciate` method. However `instanciate` doesn't check that the WASM code actually exports the expected methods. It would be...
At the moment, you can add doc-comments to any item in a WIT file and the text will appear in the generated code as doc-comments for your target language, however...
#119 requires identifiers to be lower-case [stream-safe] [NFC] [kebab-case] where each part delimited by '-'s starts with a `XID_Start` scalar value with a zero canonical combining class. Concerns which are...
Hello, I made this tool https://github.com/bnjjj/witgen to be able to automatically generate `record`, `type`, `function`, `variant`, ... from your rust code. Maybe it could help some people with the same...
While working on #184, I noticed that the `wasmtime-py` generator will panic if it encounters a function with `i` as an argument. Here is a minimal `repro.wit`. ``` foo: function(i:...
Currently in wit, this is legal: ```wit record foo { } foo: function(f: foo) ``` In the current component mode proposal, exports are used to name things, so a component...
I suggest changing the `handle` syntax to use angle brackets for consistency with other types that take type parameters: `expected`, `tuple`, `option`, `list` Example: `handle my-resource` -> `handle`
Currently the imports collide with how the canonical ABI is designed. This should result in a better first-class error that a module can't work with two resources of the same...
Currently it just uses slices of the underlying array buffer and doesn't attempt to swap endianness, which means that little-endian integers from wasm will be exposed as native-endian integers in...
Right now generating identifiers is pretty ad-hoc across all the language bindings. I created a `Ns` type for use in the C bindings generator but even then it's only lightly...