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
Before starting, ensure that you have the following installed in addition to the Go (1.23+) toolchain:
8
15
9
16
-[`tinygo`](https://tinygo.org/getting-started/install/) for compiling Go (always use the latest version)
@@ -96,4 +103,4 @@ You can stop the `wash dev` process with `Ctrl-C`.
96
103
97
104
When running this example with the `wash dev` command, wasmCloud uses its included NATS key-value store to back key-value operations, but the application could use another store like Redis with no change to the Go code.
98
105
99
-
You can learn more about capabilities like key-value storage are fulfilled by swappable providers in the [wasmCloud Quickstart](https://wasmcloud.com/docs/tour/hello-world).
106
+
You can learn more about capabilities like key-value storage are fulfilled by swappable providers in the [wasmCloud Quickstart](https://wasmcloud.com/docs/tour/hello-world).
Copy file name to clipboardExpand all lines: examples/component/http-password-checker/README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Go HTTP Password Checker
2
2
3
-
[This example](https://github.com/wasmCloud/go/tree/main/examples/component/http-password-checker) is a WebAssembly component that checks password strength over HTTP.
3
+
[This example](https://github.com/wasmCloud/go/tree/main/examples/component/http-password-checker) is a WebAssembly component that checks password strength over HTTP.
4
4
5
5
The application...
6
6
@@ -17,6 +17,13 @@ The application...
17
17
18
18
## 📦 Dependencies
19
19
20
+
> [!WARNING]
21
+
> Due to incompatibilities introduced in `wasm-tools` v1.226.0, a version of
22
+
> `wasm-tools` <= 1.225.0 is **required** for running this example.
23
+
>
24
+
> You can install `wasm-tools`[v1.225.0 from upstream releases](https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.225.0), or use
Before starting, ensure that you have the following installed in addition to the Go (1.23+) toolchain:
21
28
22
29
-[`tinygo`](https://tinygo.org/getting-started/install/) for compiling Go (always use the latest version)
@@ -25,7 +32,7 @@ Before starting, ensure that you have the following installed in addition to the
25
32
26
33
## 👟 Run the example
27
34
28
-
Clone the [wasmCloud/go repository](https://github.com/wasmcloud/go):
35
+
Clone the [wasmCloud/go repository](https://github.com/wasmcloud/go):
29
36
30
37
```shell
31
38
git clone https://github.com/wasmCloud/go.git
@@ -98,7 +105,7 @@ If `curl`ing produces...
98
105
failed to invoke `wrpc:http/incoming-handler.handle`: failed to invoke `wrpc:http/[email protected]`: failed to shutdown synchronous parameter channel: not connected%
99
106
```
100
107
101
-
...the HTTP server may not have finished starting up. You can check that the application has reached `Deployed` status with `wash app list`.
108
+
...the HTTP server may not have finished starting up. You can check that the application has reached `Deployed` status with `wash app list`.
102
109
103
110
If the issue persists, you may have a lingering HTTP server provider running on your system. You can use `pgrep` to check:
104
111
@@ -113,4 +120,4 @@ pgrep -la ghcr_io
113
120
114
121
To learn how to extend this example with additional capabilities, see the [Adding Capabilities](https://wasmcloud.com/docs/tour/adding-capabilities?lang=go) section of the wasmCloud documentation.
115
122
116
-
For more on building components, see the [Component Developer Guide](https://wasmcloud.com/docs/developer/components/) in the wasmCloud documentation.
123
+
For more on building components, see the [Component Developer Guide](https://wasmcloud.com/docs/developer/components/) in the wasmCloud documentation.
Copy file name to clipboardExpand all lines: examples/component/invoke/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Go Component SDK with Custom WIT
2
2
3
3
[This example](https://github.com/wasmCloud/go/tree/main/examples/component/invoke) is a WebAssembly component that demonstrates how to
4
-
use the wasmCloud [Go Component SDK](https://github.com/wasmCloud/go/tree/main/component) in conjunction with your own custom [WIT interfaces](https://wasmcloud.com/docs/concepts/interfaces).
4
+
use the wasmCloud [Go Component SDK](https://github.com/wasmCloud/go/tree/main/component) in conjunction with your own custom [WIT interfaces](https://wasmcloud.com/docs/concepts/interfaces).
5
5
6
6
You can find this application's custom interface in `wit/world.wit`:
7
7
@@ -13,6 +13,13 @@ interface invoker {
13
13
14
14
## 📦 Dependencies
15
15
16
+
> [!WARNING]
17
+
> Due to incompatibilities introduced in `wasm-tools` v1.226.0, a version of
18
+
> `wasm-tools` <= 1.225.0 is **required** for running this example.
19
+
>
20
+
> You can install `wasm-tools`[v1.225.0 from upstream releases](https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.225.0), or use
21
+
> `cargo` (Rust toolchain) if installed to install `1.225.0` -- (i.e. `cargo install --locked [email protected]`)
22
+
16
23
Before starting, ensure that you have the following installed in addition to the Go (1.23+) toolchain:
17
24
18
25
-[`tinygo`](https://tinygo.org/getting-started/install/) for compiling Go (always use the latest version)
@@ -21,7 +28,7 @@ Before starting, ensure that you have the following installed in addition to the
21
28
22
29
## 👟 Run the example
23
30
24
-
Clone the [wasmCloud/go repository](https://github.com/wasmcloud/go):
31
+
Clone the [wasmCloud/go repository](https://github.com/wasmcloud/go):
25
32
26
33
```shell
27
34
git clone https://github.com/wasmCloud/go.git
@@ -112,4 +119,4 @@ Hello from the invoker!
112
119
113
120
## 📖 Further reading
114
121
115
-
For more on custom interfaces, see the [Interface Developer Guide](https://wasmcloud.com/docs/developer/interfaces/creating-an-interface) in the wasmCloud documentation.
122
+
For more on custom interfaces, see the [Interface Developer Guide](https://wasmcloud.com/docs/developer/interfaces/creating-an-interface) in the wasmCloud documentation.
0 commit comments