wasm-c-api
wasm-c-api copied to clipboard
Wasm C API prototype
The [Bulk memory operations](https://github.com/WebAssembly/bulk-memory-operations) and the [Reference Types](https://github.com/WebAssembly/reference-types) have merged into master. Should Wasm C API support these proposals such as replacing `WASM_ANYREF` into `WASM_EXTERNREF`? And also, is it possible...
Hi all, Was trying to figure out what imports were required by a wasm I'd just loaded & couldn't spot a suitable example. Have created one with help from the...
A user of Wasmer has just requested usage of the custom section API via our C bindings. Wasmer is basing their new API based on Wasm-C-API, but it doesn't have...
when compiling v8 embedding app i get this error: exploit.o: In function `wasm::vec::~vec()': /home/pwn/v8/v8/third_party/wasm-api/wasm.hh:63: undefined reference to `wasm::vec::free_data()' exploit.o: In function `wasm::vec::vec(unsigned long)': /home/pwn/v8/v8/third_party/wasm-api/wasm.hh:50: undefined reference to `wasm::vec::make_data()' collect2: error:...
Original comments by @alexcrichton in https://github.com/WebAssembly/wasm-c-api/pull/145#issuecomment-652444373 : > I think in terms of ownership the API right now is pretty inconsistent, and I think that @sunfishcode's suggestion could greatly improve...
The main purposes of wasm::vec are: * bundle an arrays and its size, * handle ownership of the elements (and the array), * allow casting from and to plain C...
See also #156 A "high-level" memory API, with operations like "read_u32", "read_bytes" and so on, would be highly appreciated. Unlike the raw memory API, it would automatically convert addresses/endianness as...
Hello dear all, For the moment, it is assumed that the project does not provide any documentation. When will it be time to write documentation, and did you already think...
There's been a few changes to the reference types proposal which I don't believe have been reflected into the C API. Notably I think a few things need to be...
Currently the C API provides no means of communicating rich error information (e.g. strings/class/code/etc) which isn't a trap. For example `wasm_module_validate` only allows returning a `bool` whereas engines probably have...