Skip to content

Conversation

@peter-jerry-ye
Copy link
Contributor

This PR ships a few updates to keep up with a few MoonBit changes to eliminate the warnings as much as possible.

  • The borrow / own attributes are added for the ffi functions

This PR also refactored the codegen part of MoonBit to make it more modular and more readable, hopefully.

  • The experimental async support code are extracted for better readability
  • Some redundant logic (such as cleanup list, code gen fragments, etc) are simplified
  • The inline wasm code snippets are generated where they are used, so there's no longer necessary for a separate package.

I expect to refactor the async support in the next PR.

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Dec 10, 2025
Merged via the queue into bytecodealliance:main with commit d333137 Dec 10, 2025
25 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