From 39f8c48d6123536197f2b3c62da5829929f9f64e Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Mon, 28 Oct 2024 17:59:34 +0100 Subject: [PATCH] chore: update `wadge` Signed-off-by: Roman Volosatovs --- _examples/http-client/go.mod | 1 + _examples/http-client/go.sum | 2 ++ _examples/http-server/bindings.wadge_test.go | 15 ++++++++------- _examples/http-server/go.mod | 2 +- _examples/http-server/go.sum | 2 ++ _examples/invoke/go.mod | 2 +- _examples/invoke/go.sum | 2 ++ 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/_examples/http-client/go.mod b/_examples/http-client/go.mod index 47b7347..e350daf 100644 --- a/_examples/http-client/go.mod +++ b/_examples/http-client/go.mod @@ -17,6 +17,7 @@ require ( github.com/ulikunitz/xz v0.5.12 // indirect github.com/urfave/cli/v3 v3.0.0-alpha9 // indirect github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect + go.wasmcloud.dev/wadge v0.7.0 // indirect golang.org/x/mod v0.21.0 // indirect golang.org/x/sys v0.26.0 // indirect ) diff --git a/_examples/http-client/go.sum b/_examples/http-client/go.sum index 11a8c4a..a6ce08b 100644 --- a/_examples/http-client/go.sum +++ b/_examples/http-client/go.sum @@ -33,6 +33,8 @@ github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGC github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= go.wasmcloud.dev/component v0.0.3 h1:uC45sgRpV8zTC7BMs7/BMBKKzWmj5OW+vYDcdnijD0U= go.wasmcloud.dev/component v0.0.3/go.mod h1:OIHhTDo0O6T2GZ2E5oiJiZeT15zBm0OUBCRSdtUdo24= +go.wasmcloud.dev/wadge v0.7.0 h1:eUt0jODh6xQ5HEof1PFSgDp+evrNs+lD1LYCYeRR2Cg= +go.wasmcloud.dev/wadge v0.7.0/go.mod h1:SMnPSWZFTkXyUX0GJ11mcdc7ZoMITtbAlPLlpvGJd4M= golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= diff --git a/_examples/http-server/bindings.wadge_test.go b/_examples/http-server/bindings.wadge_test.go index 1efa04b..c83ec83 100644 --- a/_examples/http-server/bindings.wadge_test.go +++ b/_examples/http-server/bindings.wadge_test.go @@ -6,6 +6,7 @@ package main_test import ( github_com__bytecodealliance__wasm___tools___go__cm "github.com/bytecodealliance/wasm-tools-go/cm" + go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock "go.wasmcloud.dev/component/gen/wasi/clocks/monotonic-clock" go_wasmcloud_dev__component__gen__wasi__http__outgoing___handler "go.wasmcloud.dev/component/gen/wasi/http/outgoing-handler" go_wasmcloud_dev__component__gen__wasi__http__types "go.wasmcloud.dev/component/gen/wasi/http/types" go_wasmcloud_dev__component__gen__wasi__io__poll "go.wasmcloud.dev/component/gen/wasi/io/poll" @@ -92,7 +93,7 @@ func wasmimport_SubscribeInstant(when0 uint64) (result0 uint32) { } //go:linkname wasmimport_Handle go.wasmcloud.dev/component/gen/wasi/http/outgoing-handler.wasmimport_Handle -func wasmimport_Handle(request0 uint32, options0 uint32, options1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__outgoing___handler.ErrorCodeShape, FutureIncomingResponse, ErrorCode]) { +func wasmimport_Handle(request0 uint32, options0 uint32, options1 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__outgoing___handler.ErrorCodeShape, go_wasmcloud_dev__component__gen__wasi__http__types.FutureIncomingResponse, go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { @@ -428,7 +429,7 @@ func wasmimport_FutureIncomingResponseSubscribe(self0 uint32) (result0 uint32) { } //go:linkname wasmimport_FutureTrailersGet go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_FutureTrailersGet -func wasmimport_FutureTrailersGet(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[github_com__bytecodealliance__wasm___tools___go__cm.Result[github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, github_com__bytecodealliance__wasm___tools___go__cm.Option[Trailers], go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, github_com__bytecodealliance__wasm___tools___go__cm.Option[Trailers], go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], struct{}]]) { +func wasmimport_FutureTrailersGet(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[github_com__bytecodealliance__wasm___tools___go__cm.Result[github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.Trailers], go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCodeShape, github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__http__types.Trailers], go_wasmcloud_dev__component__gen__wasi__http__types.ErrorCode], struct{}]]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { @@ -468,7 +469,7 @@ func wasmimport_FutureTrailersSubscribe(self0 uint32) (result0 uint32) { } //go:linkname wasmimport_IncomingBodyStream go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_IncomingBodyStream -func wasmimport_IncomingBodyStream(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[InputStream, InputStream, struct{}]) { +func wasmimport_IncomingBodyStream(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.InputStream, go_wasmcloud_dev__component__gen__wasi__io__streams.InputStream, struct{}]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { @@ -668,7 +669,7 @@ func wasmimport_IncomingResponseStatus(self0 uint32) (result0 uint32) { } //go:linkname wasmimport_OutgoingBodyWrite go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_OutgoingBodyWrite -func wasmimport_OutgoingBodyWrite(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[OutputStream, OutputStream, struct{}]) { +func wasmimport_OutgoingBodyWrite(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Result[go_wasmcloud_dev__component__gen__wasi__io__streams.OutputStream, go_wasmcloud_dev__component__gen__wasi__io__streams.OutputStream, struct{}]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { @@ -1024,7 +1025,7 @@ func wasmimport_OutgoingResponseStatusCode(self0 uint32) (result0 uint32) { } //go:linkname wasmimport_RequestOptionsBetweenBytesTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsBetweenBytesTimeout -func wasmimport_RequestOptionsBetweenBytesTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[Duration]) { +func wasmimport_RequestOptionsBetweenBytesTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock.Duration]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { @@ -1044,7 +1045,7 @@ func wasmimport_RequestOptionsBetweenBytesTimeout(self0 uint32, result *github_c } //go:linkname wasmimport_RequestOptionsConnectTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsConnectTimeout -func wasmimport_RequestOptionsConnectTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[Duration]) { +func wasmimport_RequestOptionsConnectTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock.Duration]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { @@ -1064,7 +1065,7 @@ func wasmimport_RequestOptionsConnectTimeout(self0 uint32, result *github_com__b } //go:linkname wasmimport_RequestOptionsFirstByteTimeout go.wasmcloud.dev/component/gen/wasi/http/types.wasmimport_RequestOptionsFirstByteTimeout -func wasmimport_RequestOptionsFirstByteTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[Duration]) { +func wasmimport_RequestOptionsFirstByteTimeout(self0 uint32, result *github_com__bytecodealliance__wasm___tools___go__cm.Option[go_wasmcloud_dev__component__gen__wasi__clocks__monotonic___clock.Duration]) { var __p runtime.Pinner defer __p.Unpin() if __err := wadge.WithCurrentInstance(func(__instance *wadge.Instance) error { diff --git a/_examples/http-server/go.mod b/_examples/http-server/go.mod index 986f0b2..f77f5b4 100644 --- a/_examples/http-server/go.mod +++ b/_examples/http-server/go.mod @@ -6,7 +6,7 @@ require ( github.com/bytecodealliance/wasm-tools-go v0.3.0 github.com/stretchr/testify v1.9.0 go.wasmcloud.dev/component v0.0.3 - go.wasmcloud.dev/wadge v0.6.0 + go.wasmcloud.dev/wadge v0.7.0 ) require ( diff --git a/_examples/http-server/go.sum b/_examples/http-server/go.sum index 1f6b4fc..d2a6db7 100644 --- a/_examples/http-server/go.sum +++ b/_examples/http-server/go.sum @@ -39,6 +39,8 @@ go.wasmcloud.dev/component v0.0.3 h1:uC45sgRpV8zTC7BMs7/BMBKKzWmj5OW+vYDcdnijD0U go.wasmcloud.dev/component v0.0.3/go.mod h1:OIHhTDo0O6T2GZ2E5oiJiZeT15zBm0OUBCRSdtUdo24= go.wasmcloud.dev/wadge v0.6.0 h1:wHcnXZhxJ9eVzp/38eyo2oc6bkS2qNS5a4FrBUCFIPE= go.wasmcloud.dev/wadge v0.6.0/go.mod h1:BkAxt9wF08UWbRYblfxbTtupn0rQLtsgTKeu22SBGRg= +go.wasmcloud.dev/wadge v0.7.0 h1:eUt0jODh6xQ5HEof1PFSgDp+evrNs+lD1LYCYeRR2Cg= +go.wasmcloud.dev/wadge v0.7.0/go.mod h1:SMnPSWZFTkXyUX0GJ11mcdc7ZoMITtbAlPLlpvGJd4M= golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= diff --git a/_examples/invoke/go.mod b/_examples/invoke/go.mod index bb30d2d..83f0f71 100644 --- a/_examples/invoke/go.mod +++ b/_examples/invoke/go.mod @@ -6,7 +6,7 @@ require ( github.com/bytecodealliance/wasm-tools-go v0.3.0 github.com/stretchr/testify v1.9.0 go.wasmcloud.dev/component v0.0.3 - go.wasmcloud.dev/wadge v0.6.0 + go.wasmcloud.dev/wadge v0.7.0 ) require ( diff --git a/_examples/invoke/go.sum b/_examples/invoke/go.sum index 1f6b4fc..d2a6db7 100644 --- a/_examples/invoke/go.sum +++ b/_examples/invoke/go.sum @@ -39,6 +39,8 @@ go.wasmcloud.dev/component v0.0.3 h1:uC45sgRpV8zTC7BMs7/BMBKKzWmj5OW+vYDcdnijD0U go.wasmcloud.dev/component v0.0.3/go.mod h1:OIHhTDo0O6T2GZ2E5oiJiZeT15zBm0OUBCRSdtUdo24= go.wasmcloud.dev/wadge v0.6.0 h1:wHcnXZhxJ9eVzp/38eyo2oc6bkS2qNS5a4FrBUCFIPE= go.wasmcloud.dev/wadge v0.6.0/go.mod h1:BkAxt9wF08UWbRYblfxbTtupn0rQLtsgTKeu22SBGRg= +go.wasmcloud.dev/wadge v0.7.0 h1:eUt0jODh6xQ5HEof1PFSgDp+evrNs+lD1LYCYeRR2Cg= +go.wasmcloud.dev/wadge v0.7.0/go.mod h1:SMnPSWZFTkXyUX0GJ11mcdc7ZoMITtbAlPLlpvGJd4M= golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=