blob: 3d300d9aa39a5f96d4df922a2eda81fdc4fecad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# WASM example
Examples use a CLI tool named `wasm-pack` to build this example:
```
cargo install wasm-pack --version 0.12.1
```
## Building
To build the example, run:
```
wasm-pack build --target web
```
## Running
To run the example, start a webserver server the local folder:
```
python -m http.server
```
Then, open a browser at http://127.0.0.1:8000 and watch the ticker print entries to the window.
|