rustwasm / book

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

hello world, rebuilding unclear #84

Closed aep closed 5 years ago

aep commented 6 years ago

Where in the docs did you come across this?

https://rustwasm.github.io/book/game-of-life/hello-world.html

Describe what about it does not make sense

Exercises says "rebuild the .wasm binary,", but no text before that explains how you actually do that. The only command that was mentioned before is wasm-pack init,

Why does it not make sense?

according to https://github.com/rustwasm/wasm-pack/issues/185 the correct command is

wasm-pack init --mode no-install 

but that is non obvious

How could we improve it?

mention wasm-pack init --mode no-install

rahul-thakoor commented 6 years ago

Hey there. I was just completing the hello-world tutorial. A note in the book stating that one can use wasm-pack init --mode no-install(or wasm-pack build --mode no-install eventually since init is DEPRECATED) to skip installing wasm-bindgen would be helpful...