3 ms·
> C, C++, Rust and others already have their own DOM/JS support. What does that mean? Could you expand on that? Can Rust code compiled to wasm manipulate the
by pas 9y ago
> C, C++, Rust and others already have their own DOM/JS support.
What does that mean? Could you expand on that?
Can Rust code compiled to wasm manipulate the DOM?
- steveklabnik 9y agoVia calling through JavaScript, yes. Wasm itself can't directly manipulate the DOM. I'm not sure what your parent means.
- logn 9y agoRust -- https://github.com/koute/stdweb https://github.com/koute/stdweb C++ -- https://github.com/mbasso/asm-dom https://github.com/mbasso/asm-dom I don't know exactly how these work but Emscripten allows interop both ways (embedding JS in native code and calling native code from JS) -- https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html https://kripken.github.io/emscripten-site/docs/porting/conne...