bytecodealliance / bytecodealliance/wit-bindgen

Feture request: Add `--async` flag support for C++

Open
#1,660 1 comment 0 reactions 0 assignees View on GitHub
gen-cpp
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

`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 ` in the `cpp` generator with the same semantics as `c`/`rust`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.