From 02d535282a391378c1e01fa5e750ea2877cb45d5 Mon Sep 17 00:00:00 2001 From: DavidOConnor Date: Sat, 15 Dec 2018 11:23:48 -0500 Subject: [PATCH] Removed instantiatestreaming hack --- Cargo.toml | 2 +- README.md | 6 ++++-- index.html | 13 ------------- server.py | 19 +++++++++++++++++++ src/lib.rs | 2 +- 5 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 server.py diff --git a/Cargo.toml b/Cargo.toml index 2997614..9651903 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" crate-type = ["cdylib"] [dependencies] -seed = "^0.1.2" +seed = "^0.1.4" wasm-bindgen = "^0.2.29" web-sys = "^0.3.6" diff --git a/README.md b/README.md index 491d0ee..8f43a8f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **To get started:** - Clone this repo -- If you don't have Rust and wasm-bindgen installed, [Download it](https://www.rust-lang.org), and run the following commands: +- If you don't have Rust and wasm-bindgen installed, [Download it](https://www.rust-lang.org/tools/install), and run the following commands: `rustup update` @@ -11,7 +11,9 @@ `cargo install wasm-bindgen-cli` - - Run `build.sh` or `build.ps1`, then open `index.html` in a web browser, or use a local server. (Opening the file directly may not work in some browsers.) + - Run `build.sh` or `build.ps1`, then then start a dev server that supports WASM. +For example, with [Python](https://www.python.org/downloads/) installed, run `python server.py`. +(Linux users may need to run `python3 server.py`.) Once you rename the crate in `Cargo.toml` (The `name` field under `[Package]`), make the following changes: diff --git a/index.html b/index.html index 0bbd306..8745134 100644 --- a/index.html +++ b/index.html @@ -16,19 +16,6 @@
- -