wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

A language binding generator for WebAssembly interface types

Results 226 wit-bindgen issues
Sort by recently updated
recently updated
newest added

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...

gen-js

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...

syntax

#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...

syntax

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...

gen-rust-wasm

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:...

gen-wasmtime-py

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...

syntax

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`

syntax

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...

resources

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...

gen-js

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...

gen-rust-wasm
gen-wasmtime
gen-wasmtime-py
gen-js
gen-c