You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wasm-wrappers/README.md
+25-6Lines changed: 25 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,21 +35,21 @@ In the wasm Cargo.toml directory, run:
35
35
tsc --project js-bindings-test/tsconfig.json
36
36
```
37
37
38
-
### Running the tests in a web browser
38
+
### Run the tests in a web browser
39
39
40
40
To build the wasm package from the crate, run (in the wasm Cargo.toml directory):
41
41
42
42
```
43
43
wasm-pack build --target web
44
44
```
45
45
46
-
To test the wasm binary. First, install `http-server` web server (feel free to use any other web-server of your choosing):
46
+
To test the wasm binary, first install `http-server` web server (feel free to use any other web-server of your choosing):
47
47
48
48
```
49
49
cargo install http-server
50
50
```
51
51
52
-
Then run the http server, and then choose the file `js-bindings-test/index.html`:
52
+
Then run the http server:
53
53
54
54
```
55
55
http-server --port 8080
@@ -61,22 +61,41 @@ If you're using a remote server, either tunnel to port 8080, or expose that port
61
61
http-server --port 8080 --host 0.0.0.0
62
62
```
63
63
64
-
The ported wasm functions are exported to the file `js-bindings-test/index.js` and used in the file `js-bindings-test/index.html`with a basic test/example in them using JavaScript. Use your browser's console to see the output.
64
+
To run test tests, choose the file `js-bindings-test/index.html` in the browser. Use browser's console to see the output.
65
65
66
-
### Running the tests in Node.js
66
+
### Run the tests in Node.js
67
67
68
68
To build the wasm package from the crate, run (in the wasm Cargo.toml directory):
0 commit comments