Skip to content

Turn on new WIT metadata format by default #2201

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

Conversation

alexcrichton
Copy link
Member

This commit is a follow-up to #1508 where a new JSON format was added for storing docs/stability and accounting for world imports/exports allowing overlap. This support should have permeated far enough that it's reasonable to turn this on-by-default now.

This additionally fixes fuzz bugs cropping up after adding support for stability annotations in the generated WIT, the other motivation for this.

This commit is a follow-up to bytecodealliance#1508 where a new JSON format was added
for storing docs/stability and accounting for world imports/exports
allowing overlap. This support should have permeated far enough that
it's reasonable to turn this on-by-default now.

This additionally fixes fuzz bugs cropping up after adding support for
stability annotations in the generated WIT, the other motivation for this.
@@ -11,7 +11,7 @@
)
)
(export (;1;) "console" (type 0))
(@custom "package-docs" "\00{}")
(@custom "package-docs" "\01{}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this get bumped to 01? I don't really see reasoning in this PR but I assume it is due to the face this feature is no turned on?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah that's around here where by changing the static this is changing the default emission as well

@alexcrichton alexcrichton requested review from a team and abrown and removed request for a team May 29, 2025 16:54
Copy link
Collaborator

@abrown abrown left a comment

Choose a reason for hiding this comment

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

I'm not sure I'm qualified to review this PR but @jsturtevant seems to think it is OK, so +1!

@alexcrichton alexcrichton added this pull request to the merge queue May 29, 2025
Merged via the queue into bytecodealliance:main with commit 856c8e5 May 29, 2025
32 checks passed
@alexcrichton alexcrichton deleted the new-wit-metadata-format branch May 29, 2025 22:53
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.

3 participants