Skip to content

moonbit: lay groundwork for async runtime support#1581

Merged
alexcrichton merged 4 commits intobytecodealliance:mainfrom
peter-jerry-ye:moonbit-pr1
Apr 9, 2026
Merged

moonbit: lay groundwork for async runtime support#1581
alexcrichton merged 4 commits intobytecodealliance:mainfrom
peter-jerry-ye:moonbit-pr1

Conversation

@peter-jerry-ye
Copy link
Copy Markdown
Contributor

This is the first step in the MoonBit async work, and is intended to keep the later changes easier to review.

The diff includes a few preparatory refactors and language/runtime updates:

  • add separate MoonBit Debug support via --derive-debug without changing the existing --derive-show behavior
  • switch export-side generated stubs over to declare, so bindgen no longer needs to emit an export stub.mbt
  • update the MoonBit test/build flow to the current moon build layout and accept both _build/... and target/... output locations
  • land the initial async runtime scaffolding and associated generator refactors that later PRs will build on

I kept this as a foundation PR on purpose so the follow-up async behavior changes can be reviewed separately.

Validation:

  • cargo check -p wit-bindgen-moonbit
  • cargo run test --languages rust,moonbit tests/runtime --artifacts target/artifacts --rust-wit-bindgen-path ./crates/guest-rust --runner wasmtime

@peter-jerry-ye peter-jerry-ye marked this pull request as ready for review April 9, 2026 03:17
@alexcrichton alexcrichton added this pull request to the merge queue Apr 9, 2026
Merged via the queue into bytecodealliance:main with commit 81ce0de Apr 9, 2026
28 checks passed
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