This adds the Rust/wasm toolchain. It opens a rather obnoxious alert right then opening the side which obviously will have to go, yet I left it in for now, so you can check quickly if everything works by just opening the site.
I opted not to use a bundler for now. The main drawback seems to be, that without it we cannot import npm modules from within Rust, which we currently do not plan anyway.
I am unsure there the best point is to wait for init future which signalizes that the wasm code has been streamed successfully. Optimally we would stream the code during the time the user needs to select a file, so it is likely ready to go then the file is selected. Yet up until that point we should not block on it, so the site loads as fast as possible.
You probably need to install a few things before you can build this site again. Luckily the runtime requirements of the site are still low (i.e. we do not need a server). I added a prerequisites and a build section to the Readme in order to aid you with the transition.
This adds the Rust/wasm toolchain. It opens a rather obnoxious alert right then opening the side which obviously will have to go, yet I left it in for now, so you can check quickly if everything works by just opening the site.
I opted not to use a bundler for now. The main drawback seems to be, that without it we cannot import npm modules from within Rust, which we currently do not plan anyway.
I am unsure there the best point is to wait for
init
future which signalizes that the wasm code has been streamed successfully. Optimally we would stream the code during the time the user needs to select a file, so it is likely ready to go then the file is selected. Yet up until that point we should not block on it, so the site loads as fast as possible.You probably need to install a few things before you can build this site again. Luckily the runtime requirements of the site are still low (i.e. we do not need a server). I added a prerequisites and a build section to the Readme in order to aid you with the transition.
Looking forward to your feedback!