File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
component-model/src/language-support Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -123,20 +123,6 @@ $ cargo run --release -- 1 2 ../add/target/wasm32-wasip1/release/adder.wasm
1231231 + 2 = 3
124124```
125125
126- ## Exporting an interface
127-
128- Notice how our ` root ` world in the ` wasm-tools ` output exports ` add ` as part of an _ interface_ .
129- It's often preferable to export an interface rather than a function, either to
130- comply with an existing specification or to capture several functions and types
131- at once.
132-
133- For example, to implement the [ ` adder ` world] ( #adding-the-wit-world ) , you would
134- write the following Rust code:
135-
136- ``` rust
137- {{#include .. / .. / examples / tutorial / adder / src / lib . rs}}
138- ```
139-
140126## Importing an interface
141127
142128The world file (` wit/world.wit ` ) we generated doesn't specify any imports. If
You can’t perform that action at this time.
0 commit comments