Skip to content

Commit 80b53ab

Browse files
committed
chore: bump wit-bindgen-go version
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent 87b6b24 commit 80b53ab

7 files changed

Lines changed: 31 additions & 47 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
target
22
go.mod
3+
go.sum
34
*.wasm
45
wasi_*
56
wit_*

Cargo.lock

Lines changed: 19 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ anyhow = { workspace = true}
3838
clap = { version = "4.5.53", features = ["derive"] }
3939
regex = "1.12.2"
4040
wat = { version = "1.243.0"}
41-
wit-bindgen-go = "0.50.0"
42-
wit-component = "0.243.0"
43-
wit-parser = "0.243.0"
41+
wit-bindgen-go = "0.51.0"
42+
wit-component = "0.244.0"
43+
wit-parser = "0.244.0"

examples/wasip2/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
generate-bindings:
22
componentize-go --world wasip2-example bindings --format
3+
go mod tidy
34

45
build-component: generate-bindings
56
componentize-go --world wasip2-example componentize

examples/wasip2/export_wasi_http_incoming_handler/handler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package export_wasi_http_incoming_handler
22

33
import (
44
. "wit_component/wasi_http_types"
5-
. "wit_component/wit_types"
5+
6+
. "github.com/bytecodealliance/wit-bindgen/wit_types"
67
)
78

89
// Handle the specified `Request`, returning a `Response`

examples/wasip3/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ install-patched-go:
1111

1212
generate-bindings: install-patched-go
1313
componentize-go --world wasip3-example bindings --format
14+
go mod tidy
1415

1516
build-component: generate-bindings
1617
componentize-go --world wasip3-example componentize --go ../../$(GO)/bin/go

examples/wasip3/export_wasi_http_handler/handler.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import (
77
"net/url"
88
"wit_component/wasi_http_handler"
99
. "wit_component/wasi_http_types"
10-
. "wit_component/wit_types"
10+
11+
. "github.com/bytecodealliance/wit-bindgen/wit_types"
1112
)
1213

1314
// Handle the specified `Request`, returning a `Response`
@@ -26,8 +27,8 @@ func Handle(request *Request) Result[*Response, ErrorCode] {
2627
}()
2728

2829
response, send := ResponseNew(
29-
FieldsFromList([]Tuple2[string, []uint8]{
30-
Tuple2[string, []uint8]{"content-type", []uint8("text/plain")},
30+
FieldsFromList([]Tuple2[string, []byte]{
31+
{F0: "content-type", F1: []byte("text/plain")},
3132
}).Ok(),
3233
Some(rx),
3334
trailersFuture(),

0 commit comments

Comments
 (0)