pacman82 / extract-my-file

A website using wasm to extract your file on your local machine
MIT License
0 stars 0 forks source link

add rust toolchain without using bundler #2

Closed pacman82 closed 5 years ago

pacman82 commented 5 years ago

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!

d-werner commented 5 years ago

How about meeting after work tomorrow?