Simplified and corrected wasm-pack build instructions

This commit is contained in:
Dave Hrycyszyn
2020-05-07 16:30:17 +01:00
parent ccc516903c
commit 37f5bfdf02
+2 -13
View File
@@ -12,17 +12,6 @@ Check your dev console for output.
### Rebuild after Rust source changes
`./wasm-pack build` in the `nym-sphinx-wasm` directory (one up) will rebuild the wasm package if you make changes to the Rust source. That will be automatically picked up (and reloaded, if need be) by the npm dev server.
### How was this built?
This is a skeleton demo app, built from a template at: https://github.com/rustwasm/create-wasm-app
See the [Rust WASM tutorial](https://rustwasm.github.io/docs/book/game-of-life/hello-world.html) for more. This was generated using the command `npm init wasm-app www` in case you'd like to see where it came from originally.
### License
Licensed under
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
Install `wasm-pack`. Instruction are at the [Rust WASM tutorial](https://rustwasm.github.io/docs/book/game-of-life/hello-world.html).
`wasm-pack build` in the `clients/webassembly` directory (one up) will rebuild the wasm package if you make changes to the Rust source. That will be automatically picked up (and reloaded, if need be) by the npm dev server.