Skip to content

Feture request: Add --async flag support for C++ #1660

Description

@MendyBerger

wit-bindgen c and rust have --async to lift/lower functions as async; cpp has none, it only sync-lifts.

This makes C++ components unusable on wasip3, where some things like wasi:filesystem/stdio are async-only: any blocking I/O traps with cannot block a synchronous task before returning, and there's no generator-level way to make the export async.

Would love to have an --async <FILTER> in the cpp generator with the same semantics as c/rust.

Activity

  1. MendyBerger commented on Jul 21, 2026

    @MendyBerger
    ContributorAuthor

    Actually, I see the cpp generator doesn't seem to support async at all yet. I guess this would be a feature request for when it gets async support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gen-cppRelated to the C++ code generator

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions