Closed stefnotch closed 1 year ago
Regarding the bundlers: Well Webpack is slow, so that's not fun. Parcel doesn't support Rust yet, so that's also a no-go https://github.com/parcel-bundler/parcel/issues/3365 Rollup might work? https://github.com/wasm-tool/rollup-plugin-rust#readme Or Vite https://github.com/rwasm/vite-plugin-rsw Or directly using it https://rustwasm.github.io/wasm-bindgen/examples/without-a-bundler.html (maybe I need https://github.com/Menci/vite-plugin-wasm as well? There's also https://github.com/vitejs/vite/discussions/7763 and https://github.com/vitejs/vite/issues/4551 ) Or with Esbuild https://github.com/Tschrock/esbuild-plugin-wasm-pack
Remember to improve the performance by doing https://github.com/rictic/airlock.chat#improve-build-performance and also do https://www.reddit.com/r/rust/comments/z1rtcb/compiler_option_to_make_all_panics_be_undefined/
Future things
(Also woah https://robert.kra.hn/posts/hot-reloading-rust/ )
https://github.com/rustwasm/wasm-bindgen/issues/2407 ouchie
(Interesting Rust library https://github.com/rustwasm/gloo )
How fast is https://trunkrs.dev/ in terms of hot reloading? Answer: slow-ish
Guides
Template
https://users.rust-lang.org/t/is-there-a-better-way-to-represent-an-abstract-syntax-tree/9549/4
For communicating between JS and WASM
Regarding the bundlers: Well Webpack is slow, so that's not fun. Parcel doesn't support Rust yet, so that's also a no-go https://github.com/parcel-bundler/parcel/issues/3365 Rollup might work? https://github.com/wasm-tool/rollup-plugin-rust#readme Or Vite https://github.com/rwasm/vite-plugin-rsw Or directly using it https://rustwasm.github.io/wasm-bindgen/examples/without-a-bundler.html (maybe I need https://github.com/Menci/vite-plugin-wasm as well? There's also https://github.com/vitejs/vite/discussions/7763 and https://github.com/vitejs/vite/issues/4551 ) Or with Esbuild https://github.com/Tschrock/esbuild-plugin-wasm-pack
Remember to improve the performance by doing https://github.com/rictic/airlock.chat#improve-build-performance and also do https://www.reddit.com/r/rust/comments/z1rtcb/compiler_option_to_make_all_panics_be_undefined/
Future things