Skip to content

Remove v1 encoding support for WIT documents/worlds - #1781

Merged
alexcrichton merged 3 commits into
bytecodealliance:mainfrom
alexcrichton:remove-world-v1-encoding
Sep 12, 2024
Merged

alexcrichton merged 3 commits into
bytecodealliance:mainfrom
alexcrichton:remove-world-v1-encoding

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
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
@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