We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8716d4 commit acee342Copy full SHA for acee342
crates/wit-component/README.md
@@ -48,11 +48,14 @@ First `wit-component` supports the wasm-based encoding of a WIT package:
48
49
```sh
50
$ cat demo.wit
51
+package my:demo;
52
+
53
interface host {
- hello: func()
54
+ hello: func();
55
}
-default world demo {
- import host: self.host
56
57
+world demo {
58
+ import host;
59
60
61
$ wasm-tools component wit demo.wit -o demo.wasm --wasm
@@ -72,7 +75,7 @@ be used where the `demo.wit` argument is specified manually, however.
72
75
73
76
$ cat demo.core.wat
74
77
(module
- (import "host" "hello" (func))
78
+ (import "my:demo/host" "hello" (func))
79
)
80
81
$ wasm-tools component embed demo.wit --world demo demo.core.wat -o demo.wasm
0 commit comments