Skip to content

Commit

Permalink
wapm/README.md: document how to test
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Nov 21, 2023
1 parent fca52a0 commit b9510e8
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion wapm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,37 @@

2. tag

3. build and publish
3. build

```shell
% ./build.sh
```

4. test

```shell
% toywasm --wasi ./build/toywasm ......
```

5. publish

```shell
% wapm publish
```

## Running the binary from wapm

```
% wapm install yamt/toywasm
% wapm run toywasm
```

Or, on toywasm:
```
% WAPM_RUNTIME="toywasm --wasi" wapm run toywasm
```

Note: the stand-alone wapm has been discontinued.
I don't know what's an alternative these days.

Or, on [webassembly.sh](https://webassembly.sh/?run-command=toywasm).

0 comments on commit b9510e8

Please sign in to comment.