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

Sharing the same WebAssembly file across multiple targets #3790

Open
magic-akari opened this issue Jan 17, 2024 · 1 comment
Open

Sharing the same WebAssembly file across multiple targets #3790

magic-akari opened this issue Jan 17, 2024 · 1 comment
Labels

Comments

@magic-akari
Copy link
Contributor

magic-akari commented Jan 17, 2024

Summary

Compiling wasm for multiple targets is a common scenario.
Is it possible to share the same wasm and only have different JavaScript glue code?

Additional Details

related issue:

@daxpedda
Copy link
Collaborator

I honestly don't know as I only use the Web target, but I don't remember any Wasm changes related to the target being made by wasm-bindgen-cli.

A very simple way to find out is just give it a try, if the Wasm file produced by wasm-bindgen-cli is byte-equivalent between different targets it should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants