Skip to content

guest-async component build error #1

Closed
@xdlin

Description

@xdlin

Hi @dicej I'm very interested in the async component function, thanks for your great work! When I tried to build it locally, but I have this error:

wasm-tools component new --adapt wasi_snapshot_preview1.reactor.wasm \  
    target/wasm32-wasi/release/guest_async.wasm -o guest-async.wasm

I got this error:

error: failed to encode a component from module

Caused by:
    0: failed to validate component output
    1: `task.return` requires the component model async feature (at offset 0x1b527)

I confirmed that I'm using the wasm-tools you provided here: cargo install --locked --git https://github.com/dicej/wasm-tools --branch async wasm-tools. Is there anything I missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions