Stream: git-wasmtime

Topic: wasmtime / Issue #1210 The wasm-rust.md example with inte...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 19:53):

alexcrichton commented on Issue #1210:

I'm going to now that we've temporarily removed interface types support, but stay tuned to https://github.com/bytecodealliance/wasmtime/issues/677 for future updates!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 19:53):

alexcrichton closed Issue #1210:

https://github.com/bytecodealliance/wasmtime/blob/master/docs/wasm-rust.md#webassembly-interface-types

Problem number one is that it will not work with a higher version thanwasm-bindgen = "=0.2.55". Currently it is set to wasm-bindgen = "0.2.54" which will install a higher minor version than 55. This has been discussed, see: https://github.com/bytecodealliance/wasmtime-demos/issues/13#issuecomment-571258694

The second is that the wasmtime command requires the --enable-multi-value flag when using interface types (maybee this is just specific to the way the wasm-bindgen proc-macro works?). Or we get this.

$ wasmtime --invoke greet target/wasm32-wasi/release/wasm_greeting.wasm "Wooo!"
Error: failed to run main module `target/wasm32-wasi/release/wasm_greeting.wasm`

Caused by:
    invalid result arity: func type returns multiple values (at offset 43)

I have a PR ready to fix these, unless anyone has anything to add?


Last updated: Nov 22 2024 at 16:03 UTC