Hi folks from Bytecode Alliance,
I'm writing a solution where I'm running wasm32-wasip2 async function via
wasmtime.
I have Rust code I'm compiling to WASM using the following command:
cargo +nightly build --release --target wasm32-wasip2
Then I grab the wasm file in:
target/wasm32-wasip2/release/http.wasm
And execute it via the following wasmtime instance:
https://github.com/LeoBorai/mate/blob/a83f164948ad6c349618c781df4ef1564d3d04c2/src/runner/src/lib.rs#L46
But when I run it, I'm getting the following error:
Error: failed to parse WebAssembly module
Caused by:
`waitable.join` requires the component model async feature (at offset 0x8be71)
I've checked on features already, I see the feature component-model-async is
enabled (Which comes as part of the default features so should be redundant at this point).