Skip to content

cm, wit/bindgen: add HostLayout field to generated structs #177

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 10 commits into from
Sep 24, 2024

Conversation

ydnar
Copy link
Collaborator

@ydnar ydnar commented Sep 22, 2024

This implements a HostLayout type in package cm, which is an alias for structs.HostLayout in Go 1.23 or later, and a polyfill for Go 1.22 or earlier.

It adds a zero-width HostLayout field to each generated struct to align with the relaxed wasm types proposal.

@ydnar ydnar self-assigned this Sep 22, 2024
@ydnar ydnar merged commit b0ee41a into main Sep 24, 2024
9 checks passed
@ydnar ydnar deleted the ydnar/hostlayout branch September 24, 2024 00:27
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.

1 participant