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

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

Merged
merged 2 commits into from
Feb 2, 2023

Conversation

alexcrichton
Copy link
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