Skip to content

Failed to parse WebAssembly module due to waitable.join requires the component model async feature #12223

@LeoBorai

Description

@LeoBorai

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions