Skip to content

Commit 185a7ba

Browse files
authored
Update README.md
1 parent b4c6887 commit 185a7ba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ imports! 😉
3535
ℹ You'll need [`wasm-tools`] installed which you can get via
3636
`cargo install wasm-tools`.
3737

38+
You can inspect the output component WASM using something like this:
39+
40+
```sh
41+
wasm-tools component wit target/wasm32-wasi/debug/*.wasm
42+
# world my-component {
43+
# import print: func(msg: string)
44+
# export run: func()
45+
# }
46+
```
47+
3848
The `wasi_snapshot_preview1.reactor.wasm` is the adapter module to shim the
3949
component API over top of the existing WASI API. Keep it updated from
4050
[bytecodealliance/wasmtime releases]. Since this is a library we want the

0 commit comments

Comments
 (0)