File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
component-model/src/language-support Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,14 @@ should be done before any other tasks. In this case, we are using it to export t
162
162
163
163
We can build our component using TinyGo by specifying the wit-package to be ` add.wit ` and the WIT world to be ` adder ` .
164
164
165
- TinyGo will invoke ` wasm-tools ` to embed the WIT file to the module and componentize it.
165
+ Under the hood, TinyGo invokes ` wasm-tools ` to embed the WIT file to the module and componentize it.
166
166
167
167
``` console
168
168
$ tinygo build -target=wasip2 -o add.wasm --wit-package add.wit --wit-world adder main.go
169
169
```
170
170
171
- We can confirm using the ` wasm-tools component wit ` command:
171
+ We now have an add component that satisfies our ` adder ` world, exporting the ` add ` function, which
172
+ we can confirm using the ` wasm-tools component wit ` command:
172
173
173
174
``` console
174
175
$ wasm-tools component wit add.wasm
You can’t perform that action at this time.
0 commit comments