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

Do WASM_bindgen created modules support running under Wasmer / Wasmtime? #3013

Open
Keithcat1 opened this issue Aug 1, 2022 · 1 comment
Labels

Comments

@Keithcat1
Copy link

Summary

It would be nice to compile, say, BROTLI to a WASM module and run it on any language and on any platform supporting WASM, but WASM_bindgen seems limited to the browser unless I am missing something? The generated WASM code appears to import tings from Javascript which aren't available otherwise.

Additional Details

The error messages involve something called 'wbindgen_placeholder'.

@Liamolucko
Copy link
Collaborator

No, wasm-bindgen only supports JavaScript hosts.

You might be interested in wit-bindgen, which is a work-in-progress project that does bindings generation similar to wasm-bindgen for multiple languages/hosts. It's not at all stable yet, though.

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