40 ms·
> In the browser I can already mix Rust and TypeScript, there's copious example code for that. I’d love to see a production architecture and file structure for
by AndrewKemendo 4y ago
> In the browser I can already mix Rust and TypeScript, there's copious example code for that.
I’d love to see a production architecture and file structure for this setup if anyone has a pointer to a GH repo or something similar
- flohofwoe 4y agoIt's not Rust and TS, instead C and JS, but Emscripten has a very nice way of integrating C/C++ and JS (you can just embed snippets of Javascript inside C/C++ source files), e.g. starting at this line, there's a couple of embedded Javascript functions which can be called like C functions directly from the "C side": https://github.com/floooh/sokol/blob/4535a3b4be59eb912e77e04a8255920deec67b4d/sokol_audio.h#L1802 https://github.com/floooh/sokol/blob/4535a3b4be59eb912e77e04...
- azeemba 4y agohttps://github.com/GraphiteEditor/Graphite https://github.com/GraphiteEditor/Graphite Web based graphics editor where the engine is written in rust. I think it uses tauri
- lukax 4y agoYou can check out Koofr Vault. The engine is written in Rust and the web frontend is written in TypeScript and React. https://github.com/koofr/vault https://github.com/koofr/vault
- chrisco255 4y agoNot a production example, but good "academic" examples are found in the Rust & WebAssembly Gitbook: https://rustwasm.github.io/docs/book/introduction.html https://rustwasm.github.io/docs/book/introduction.html
- winwhiz 4y agoI like Cloudflare's docs as a good starting place.