Skip to content
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

refactor(*): move anonymous type definition to core #758

Merged
merged 4 commits into from
May 20, 2024

Conversation

Mossaka
Copy link
Member

@Mossaka Mossaka commented Nov 17, 2023

This PR moves the define_anonymous_type in C to the core crate, as I believe this is a common pattern in all wit binding languages generators. The benefit of this refactoring work is that language generator does not need to decide which types are anonymous and that is handled by the trait function itself.

CC @alexcrichton

@Mossaka Mossaka marked this pull request as draft November 17, 2023 00:38
@Mossaka Mossaka marked this pull request as ready for review November 21, 2023 23:40
@Mossaka
Copy link
Member Author

Mossaka commented Apr 30, 2024

It seems like this PR needs a huge rebase. @alexcrichton any suggestions if we should proceed with this refactoring?

@alexcrichton
Copy link
Member

Oh dear I apologize I think github doesn't send out notifications for when a PR moves from draft to ready state, so I never saw this after it switched states. I think this is still reasonable to land though if you'd like to rebase!

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
@Mossaka
Copy link
Member Author

Mossaka commented May 17, 2024

@alexcrichton okay I finally found some time to rebase this PR. it's ready for review.

@alexcrichton alexcrichton added this pull request to the merge queue May 20, 2024
Merged via the queue into bytecodealliance:main with commit a955ee4 May 20, 2024
12 checks passed
@Mossaka Mossaka deleted the move_anonymous_type branch May 20, 2024 19: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.

None yet

2 participants