-
Notifications
You must be signed in to change notification settings - Fork 158
Webassembly (Wasm) Supported? #39
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
Comments
Can you post your emscripten version and what os you are using? |
I use Ubuntu 18.04.3 LTS and cargo-web seems to use internally "emcc (Emscripten gcc/clang-like replacement) 1.38.19 ((unknown revision))". |
I can't compile too |
@shybyte, did you manage to fix that? Thanks! |
I made a pull request to bitten2up's Raylib 5.1.0 branch to automate the flags, when that gets merged you can just use the Cargo.toml directive below and then do
|
UPDATE: It has been merged. It's actually been accepted into the master of that branch meaning you do not even need to upgrade to 5.0 |
Is compiling to Webassembly supported?
I have found the file https://github.com/deltaphc/raylib-rs/blob/master/samples/Web.toml, copied it to my own project, installed https://github.com/koute/cargo-web and executed
cargo web build
.It started compiling but stopped with the error:
The text was updated successfully, but these errors were encountered: