Skip to content

Bug: Rust Wrappers cannot be invoked (WasmtimeError: failed to parse WebAssembly module) #39

@rihp

Description

@rihp

We still have the error with WasmTime and Interface Types which doesn't allow us to execute the SHA3 wrapper for example, so we're skipping those tests now

Some background on the issue:

Most recent suggested solution on this issue thread proposes the following alternatives *(posted back in january, and few updates since)

Native support for Interface Types will be re-added to Wasmtime together with support for WebAssembly Components in the not-too-distant future. For now, wit-bindgen https://github.com/bytecodealliance/wit-bindgen (formerly known as wai-bindgen / witx-bindgen) is the right way to use Interface Types, though note that the details of the IDL and the bindings are still changing in breaking ways.

@radu-matei recently published an excellent blog post https://radu-matei.com/blog/intro-wasm-components/ describing how Components work and how to use wit-bindgen and other tools to work with them.

However these Wasm Component standards which would substitute the Interface Types are being developed still on the wasmtime repo from bytecode alliance (bytecodealliance/wasmtime#4185) and although "There's no esimate at this time", about 80% of the todos listed on such an issue have been closed

Another suggested approach:

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions