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
* feat: use webassembly-loader internally
* test: utilize jest-each for better error reporting
* docs: update README due to loader integration
* ci: lock Rust version to 1.28.0
Copy file name to clipboardExpand all lines: README.md
+15-21Lines changed: 15 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@
8
8
</div>
9
9
10
10
[![npm][npm]][npm-url]
11
-
[![node][node]][node-url]
12
11
[![size][size]][size-url]
13
12
[![npm][npm-download]][npm-url]
14
13
[![deps][deps]][deps-url]
@@ -27,7 +26,19 @@ This is a jest transformer that loads Rust code so it can be interop with Javasc
27
26
28
27
## Requirements
29
28
30
-
This module requires a minimum of Node v8.9.0, Jest v23.4.2, and Rust in [nightly channel][].
29
+
<ul>
30
+
<li>Node v8 or later</li>
31
+
<li>Jest v23 or later</li>
32
+
<li><details>
33
+
<summary>Rust v1.28.0 with wasm32-uknown-unknown installed</summary>
34
+
35
+
```console
36
+
rustup default 1.28.0
37
+
rustup target add wasm32-unknown-unknown
38
+
```
39
+
40
+
</details></li>
41
+
</ul>
31
42
32
43
## Getting Started
33
44
@@ -94,17 +105,7 @@ Pretty much like [ts-jest][], you can configure `rs-jest` by using global variab
94
105
<details>
95
106
<summary><b><code>export</code></b></summary>
96
107
97
-
- Type: `string`
98
-
- Default: `promise`
99
-
- Expected value:
100
-
-`buffer` will export wasm code as [Buffer][]
101
-
-`module` will export wasm code as [WebAssembly.Module][]
102
-
-`instance` will export wasm code as [WebAssembly.Instance][]
103
-
-`async` will [instantiate][webassembly.instantiate] wasm code asynchronously, return promise of both [WebAssembly.Module][] and [WebAssembly.Instance][]
104
-
-`async-module` will [compile][webassembly.compile] wasm code asynchronously, return promise of [WebAssembly.Module][]
105
-
-`async-instance` will [instantiate][webassembly.instantiate] wasm code asynchronously, return promise of [WebAssembly.Instance][]
106
-
107
-
How wasm code would be exported. (see [examples](#examples))
108
+
How wasm code would be exported. This options is identical with [option `export` in webassembly-loader][webassembly-loader]. (see [examples](#examples))
0 commit comments