Skip to content

Fix some wit-bindgen-related issues with generated bindings#5692

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:wit-bindgen-fixes
Feb 2, 2023
Merged

Fix some wit-bindgen-related issues with generated bindings#5692
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:wit-bindgen-fixes

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

More details in the commits, but some extra namespacing was added for methods and calculation of whether to generate owned or borrowed types was refactored and more specialized to Wasmtime now that it can.

This fixes clashes between Rust-native methods and the methods
themselves. For example right now `new` is a Rust-generated function for
constructing the wrapper but this can conflict with a world-exported
function called `new`.

Closes bytecodealliance#5585
This refactors some inherited cruft from the original `wit-bindgen`
repository to be more Wasmtime-specific and fixes a codegen case where
a type was used in both a shared and an owned context.

Closes bytecodealliance#5688
@alexcrichton alexcrichton merged commit 545749b into bytecodealliance:main Feb 2, 2023
@alexcrichton alexcrichton deleted the wit-bindgen-fixes branch February 2, 2023 17:54
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