Skip to content

Commit ec05fac

Browse files
committed
remove merge artifact
1 parent 917d2b0 commit ec05fac

File tree

1 file changed

+0
-14
lines changed
  • component-model/src/language-support

1 file changed

+0
-14
lines changed

component-model/src/language-support/rust.md

-14
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,6 @@ $ cargo run --release -- 1 2 ../add/target/wasm32-wasip1/release/adder.wasm
123123
1 + 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

142128
The world file (`wit/world.wit`) we generated doesn't specify any imports. If

0 commit comments

Comments
 (0)