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!
alexcrichton closed Issue #1210:
Problem number one is that it will not work with a higher version than
wasm-bindgen = "=0.2.55"
. Currently it is set towasm-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-571258694The second is that the
wasmtime
command requires the--enable-multi-value
flag when using interface types (maybee this is just specific to the way thewasm-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: Dec 23 2024 at 12:05 UTC