Skip to content

Update to the new async abi #1302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025

Conversation

alexcrichton
Copy link
Member

No description provided.

@alexcrichton alexcrichton requested a review from dicej May 21, 2025 18:49
@alexcrichton
Copy link
Member Author

Depends on bytecodealliance/wasm-tools#2198

Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once the tests pass and the /// TODO in subtask.rs is filled in.

This commit refactors the C/Rust bindings generators to handle the new
async import ABI which allows up to 4 flat parameters instead of always
having all parameters being indirect. Additionally the return pointer is
omitted in the ABI if there are no return values.
@alexcrichton alexcrichton marked this pull request as ready for review May 27, 2025 17:56
@alexcrichton
Copy link
Member Author

I'm really bad about going back and fixing my own TODOs....

Otherwise though I've confirmed locally that tests all pass with bytecodealliance/wasip3-prototyping#171 but I'll have to land this first, with failing async tests, before that PR can land. (and tests can't pass until the wasip3-prototyping PR lands). I'll follow-up with test fixes as necessary though if I missed something.

@alexcrichton alexcrichton added this pull request to the merge queue May 27, 2025
Merged via the queue into bytecodealliance:main with commit 98772fb May 27, 2025
18 of 19 checks passed
@alexcrichton alexcrichton deleted the new-async-abi branch May 27, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants