-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add WebAssembly target #34
Comments
https://www.hellorust.com/setup/wasm-target/ How to run wasm locally so I can do tests? How to wrap it in JS? I need at least loading and delegate to a webworker. |
There's a shell here: https://github.com/WebAssembly/binaryen And a book here: https://rust-lang-nursery.github.io/rust-wasm/setup.html |
My current plan is to only target wasm for now, using binaryen IR as target to get optimizations. Skip LLVM for now, web is the primary (first) target and won't need heavy optimization as that likely happens in the browser anyway. Binaryen can do some optimizations on wasm for optimized mode (might break source map). |
Try to have both native and WebAssembly. If that complicates things too much or takes a lot of time, then only WebAssembly is also an option (for now).
The text was updated successfully, but these errors were encountered: