Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ hello: func(who: option<person>) -> string
```

```console
$ wasmer run wasmer/wai-bindgen-cli --dir=. -- js --import browser.wai
$ wasmer run wasmer/wai-bindgen-cli --mapdir=. -- js --import browser.wai
Generating "browser.d.ts"
Generating "browser.js"
Generating "intrinsics.js"
Expand Down Expand Up @@ -139,9 +139,9 @@ All generators support the `--import` and `--export` flags in the `wai-bindgen`
CLI tool:

```console
$ wasmer run wasmer/wai-bindgen-cli --dir=. -- js --import browser.wai
$ wasmer run wasmer/wai-bindgen-cli --dir=. -- rust-wasm --export my-interface.wai
$ wasmer run wasmer/wai-bindgen-cli --dir=. -- wasmer --import host-functions.wai
$ wasmer run wasmer/wai-bindgen-cli --mapdir=. -- js --import browser.wai
$ wasmer run wasmer/wai-bindgen-cli --mapdir=. -- rust-wasm --export my-interface.wai
$ wasmer run wasmer/wai-bindgen-cli --mapdir=. -- wasmer --import host-functions.wai
```

Here "import" means "I want to import and call the functions in this interface"
Expand Down