4 ms·
I'm psyched to try wasm. Are there any crates which provide interfaces to things like a canvas object?
by wyldfire 10y ago
I'm psyched to try wasm. Are there any crates which provide interfaces to things like a canvas object?
- steveklabnik 10y agoThere were some experiments long ago: https://www.reddit.com/r/rust/comments/2yfsi9/rust_to_js_with_emscripten/?st=ix0spbxl&sh=13e1e707 https://www.reddit.com/r/rust/comments/2yfsi9/rust_to_js_wit... but it looks like SDL2 has an official port: https://github.com/emscripten-ports/SDL2 https://github.com/emscripten-ports/SDL2 So you'd use regular Rust SDL2 libraries, and it Just Works (hopefully...)
- CryZe 10y agoDepending on the cargo version, wasm might not actually work in 1.14 (couldn't check which version it uses yet). It's definitely broken in the next release, which is quite unfortunate :/