rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Please add an example without usage of wasm-pack #314

Closed Nycta-b424b3c7 closed 4 months ago

Nycta-b424b3c7 commented 4 months ago

Please add an example without wasm-pack.

I've tried doing it myself but it didn't work out, then I installed wasm-pack and it barely did anything useful. I spent ~30 seconds downloading, compiling and running God-knows-what on my personal machine without sandboxing of any kind, just to see it spit out a bunch of emojis into the terminal and then generate a single file of barely useful boilerplate JavaScript.

I'm convinced wasm-pack is entirely optional for simpler Rust-Wasm scenarios, especially after configuring build target in .cargo/config.toml.

Please consider adding an example without wasm-pack, it would be greatly appreciated.

Nycta-b424b3c7 commented 4 months ago

Actually never mind. Whatever.