From a4ed4331dd0be09cbc81ff7de5242840c29e43ef Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 22 Mar 2018 19:10:00 -0700 Subject: [PATCH] Debug mode is no longer buggy Tweak instructions in README --- README.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index eedc50d93..d3cd82092 100644 --- a/README.md +++ b/README.md @@ -104,25 +104,19 @@ of `alert` ensures that the right shims are generated. Next up let's build our project: ``` -$ cargo build --release --target wasm32-unknown-unknown +$ cargo build --target wasm32-unknown-unknown ``` -Note that we're using `--release` here because unfortunately the current LLVM -backend for wasm has a few bugs in non-optimized mode. Those bugs will hopefully -get smoothed out over time! - After this you'll have a wasm file at -`target/wasm32-unknown-unknown/release/js_hello_world.wasm`. If you'd like you -can use [wasm-gc] to make this file a little smaller - -[wasm-gc]: https://github.com/alexcrichton/wasm-gc +`target/wasm32-unknown-unknown/debug/js_hello_world.wasm`. Don't be alarmed at +the size, this is an unoptimized program! Now that we've generated the wasm module it's time to run the bindgen tool itself! This tool will postprocess the wasm file rustc generated, generating a new wasm file and a set of JS bindings as well. Let's invoke it! ``` -$ wasm-bindgen target/wasm32-unknown-unknown/release/js_hello_world.wasm \ +$ wasm-bindgen target/wasm32-unknown-unknown/debug/js_hello_world.wasm \ --out-dir . ```