From 2620d643edb7a0251a4bc68058ec948fc1e6c4ce Mon Sep 17 00:00:00 2001 From: Joe Clay <27cupsofcoffee@gmail.com> Date: Thu, 14 May 2020 12:51:25 +0100 Subject: [PATCH 1/3] Simplify the example a bit --- examples/hello/README.md | 4 ++-- examples/hello/index.html | 8 ++++---- examples/hello/src/main.rs | 9 +-------- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/examples/hello/README.md b/examples/hello/README.md index 5e0b889..ed86728 100644 --- a/examples/hello/README.md +++ b/examples/hello/README.md @@ -21,9 +21,9 @@ cargo run --features=window-sdl2 To run with web-sys: ```shell -cargo +nightly build --target wasm32-unknown-unknown +cargo build --target wasm32-unknown-unknown mkdir -p generated -wasm-bindgen ../../target/wasm32-unknown-unknown/debug/hello.wasm --out-dir generated --no-modules +wasm-bindgen ../../target/wasm32-unknown-unknown/debug/hello.wasm --out-dir generated --target web cp index.html generated ``` diff --git a/examples/hello/index.html b/examples/hello/index.html index 4e1f773..b8671f0 100644 --- a/examples/hello/index.html +++ b/examples/hello/index.html @@ -5,10 +5,10 @@
-