You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* changed uri to type in capability configs
* renamed wasmtime capabilities to wasi
* added more wasi capabilities (cli, clocks, sockets)
* moved inherit/allow booleans to properties
* error on unknown capability
Signed-off-by: markfisher <mark@modulewise.com>
Copy file name to clipboardExpand all lines: examples/7cs/README.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ $ ./run.sh 3
124
124
</td>
125
125
<td>
126
126
127
-
Host capabilities provide the interfaces a component needs to interact with the external world. For example, the `wasmtime:http` capability enables outgoing requests, and the `wasmtime:io` capability enables the underlying streams and polling (the "io" capability is configured in a separate `infra.toml` file that is shared across examples 4-7 and shown in the final section below).
127
+
Host capabilities provide the interfaces a component needs to interact with the external world. For example, the `wasmtime:http` capability enables a component to make outgoing HTTP requests.
128
128
129
129
The translator is now replaced with one that calls an external HTTP API. The `translate-api.js` implementation is slightly less simplistic as it also knows how to translate "World" into the same handful of languages.
130
130
@@ -139,7 +139,7 @@ config.locale = "fr-FR"
139
139
140
140
[component.translator]
141
141
uri = "./lib/capable-translator.wasm"
142
-
imports = ["http-client", "io"]
142
+
imports = ["http-client"]
143
143
144
144
[capability.http-client]
145
145
uri = "wasmtime:http"
@@ -177,7 +177,7 @@ config.locale = "de-DE"
177
177
178
178
[component.translator]
179
179
uri = "./lib/capable-translator.wasm"
180
-
imports = ["http-client", "io"]
180
+
imports = ["http-client"]
181
181
interceptors = ["logger"]
182
182
183
183
[component.logger]
@@ -232,7 +232,7 @@ subscription = "names"
232
232
233
233
[component.translator]
234
234
uri = "./lib/capable-translator.wasm"
235
-
imports = ["http-client", "io"]
235
+
imports = ["http-client"]
236
236
interceptors = ["logger"]
237
237
238
238
[component.logger]
@@ -288,7 +288,7 @@ subscription = "names"
288
288
289
289
[component.translator]
290
290
uri = "./lib/capable-translator.wasm"
291
-
imports = ["http-client", "io"]
291
+
imports = ["http-client"]
292
292
interceptors = ["logger"]
293
293
```
294
294
@@ -319,16 +319,14 @@ And finally, the shared `infra.toml` used for examples 4-7:
0 commit comments