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: properly remove wasm-bindgen from rust wasm modules #1796

Merged
merged 7 commits into from
Jun 30, 2023

Conversation

dOrgJelli
Copy link
Contributor

@dOrgJelli dOrgJelli commented Jun 29, 2023

NOTE: the main difference is when we call wasm-snip we explicitly instruct it to remove the nefarious wasm-bindgen import that remains, even if no other wasm-bindgen imports are being used.
wasm-snip input.wasm -o output.wasm -p .*__wbindgen_throw

I've tested this using the ethers-core wrap, which was experiencing a problem of having left-over wasm-bindgen imports, and this fix is fully functional from my testing.

pileks
pileks previously approved these changes Jun 29, 2023
Copy link
Contributor

@pileks pileks left a comment

Choose a reason for hiding this comment

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

I like the new, clearer steps with reasoning!

@dOrgJelli
Copy link
Contributor Author

NOTE: @cbrzn is investigating wrap-test-harness CI issues

cbrzn
cbrzn previously approved these changes Jun 29, 2023
@cbrzn cbrzn requested a review from pileks June 29, 2023 21:37
@dOrgJelli dOrgJelli merged commit e3e5e14 into origin-dev Jun 30, 2023
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