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

Remove v1 encoding support for WIT documents/worlds #1781

Merged

Conversation

alexcrichton
Copy link
Member

This commit removes support for the "v1" encoding of WIT packages into WebAssembly. This was originally migrated to v2 in #1252 and v2 was enabled by default in #1274. This finishes the transition by removing support for creating the old encoding.

This commit removes support for the "v1" encoding of WIT packages into
WebAssembly. This was originally migrated to v2 in bytecodealliance#1252 and v2 was
enabled by default in bytecodealliance#1274. This finishes the transition by removing
support for creating the old encoding.
let mut interfaces = IndexSet::new();
for (_, id) in self.resolve.packages[self.package].interfaces.iter() {
self.add_live_interfaces(&mut interfaces, *id);
for (name, &id) in self.resolve.packages[self.package].interfaces.iter() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the comment above this code be reworded given these changes? It seems odd that the exact same comment is duplicated below in encode_interface; it seems like a better fit there than here.

@alexcrichton alexcrichton added this pull request to the merge queue Sep 12, 2024
Merged via the queue into bytecodealliance:main with commit 564157e Sep 12, 2024
30 checks passed
@alexcrichton alexcrichton deleted the remove-world-v1-encoding branch September 12, 2024 21:04
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