diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ea50252..f6702b5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,7 +9,7 @@ on: - 'LICENSE' pull_request: env: - GO_VERSION: "1.18" + GO_VERSION: "1.20" PROTOC_VERSION: "21.12" jobs: @@ -20,9 +20,9 @@ jobs: fail-fast: false matrix: tinygo-version: - - "0.26.0" - - "0.27.0" - - "0.28.1" + - "0.31.1" + - "0.30.0" + - "0.29.0" steps: - uses: actions/checkout@v3 diff --git a/examples/helloworld/greeting/greet.pb.go b/examples/helloworld/greeting/greet.pb.go index 6682544..32b201c 100644 --- a/examples/helloworld/greeting/greet.pb.go +++ b/examples/helloworld/greeting/greet.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/helloworld/greeting/greet.proto package greeting diff --git a/examples/helloworld/greeting/greet_host.pb.go b/examples/helloworld/greeting/greet_host.pb.go index 13dc1fd..2d72e96 100644 --- a/examples/helloworld/greeting/greet_host.pb.go +++ b/examples/helloworld/greeting/greet_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/helloworld/greeting/greet.proto package greeting diff --git a/examples/helloworld/greeting/greet_options.pb.go b/examples/helloworld/greeting/greet_options.pb.go index c47d13a..039fbb0 100644 --- a/examples/helloworld/greeting/greet_options.pb.go +++ b/examples/helloworld/greeting/greet_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/helloworld/greeting/greet.proto package greeting diff --git a/examples/helloworld/greeting/greet_plugin.pb.go b/examples/helloworld/greeting/greet_plugin.pb.go index affd2cb..2436284 100644 --- a/examples/helloworld/greeting/greet_plugin.pb.go +++ b/examples/helloworld/greeting/greet_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/helloworld/greeting/greet.proto package greeting diff --git a/examples/helloworld/greeting/greet_vtproto.pb.go b/examples/helloworld/greeting/greet_vtproto.pb.go index 4b9dc87..4393a36 100644 --- a/examples/helloworld/greeting/greet_vtproto.pb.go +++ b/examples/helloworld/greeting/greet_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/helloworld/greeting/greet.proto package greeting diff --git a/examples/host-function-library/library/json-parser/export/library.pb.go b/examples/host-function-library/library/json-parser/export/library.pb.go index cb1fb7e..b39842b 100644 --- a/examples/host-function-library/library/json-parser/export/library.pb.go +++ b/examples/host-function-library/library/json-parser/export/library.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/library/json-parser/export/library.proto package export diff --git a/examples/host-function-library/library/json-parser/export/library_host.pb.go b/examples/host-function-library/library/json-parser/export/library_host.pb.go index c998e6e..4b49bac 100644 --- a/examples/host-function-library/library/json-parser/export/library_host.pb.go +++ b/examples/host-function-library/library/json-parser/export/library_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/library/json-parser/export/library.proto package export diff --git a/examples/host-function-library/library/json-parser/export/library_plugin.pb.go b/examples/host-function-library/library/json-parser/export/library_plugin.pb.go index 0e4c3a4..7b55a88 100644 --- a/examples/host-function-library/library/json-parser/export/library_plugin.pb.go +++ b/examples/host-function-library/library/json-parser/export/library_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/library/json-parser/export/library.proto package export @@ -20,9 +20,7 @@ func NewParserLibrary() ParserLibrary { return parserLibrary{} } -//go:wasm-module json-parser -//export parse_json -//go:linkname _parse_json +//go:wasmimport json-parser parse_json func _parse_json(ptr uint32, size uint32) uint64 func (h parserLibrary) ParseJson(ctx context.Context, request *ParseJsonRequest) (*ParseJsonResponse, error) { diff --git a/examples/host-function-library/library/json-parser/export/library_vtproto.pb.go b/examples/host-function-library/library/json-parser/export/library_vtproto.pb.go index 69c188d..412d375 100644 --- a/examples/host-function-library/library/json-parser/export/library_vtproto.pb.go +++ b/examples/host-function-library/library/json-parser/export/library_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/library/json-parser/export/library.proto package export diff --git a/examples/host-function-library/proto/greet.pb.go b/examples/host-function-library/proto/greet.pb.go index 934af16..ba137b2 100644 --- a/examples/host-function-library/proto/greet.pb.go +++ b/examples/host-function-library/proto/greet.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/proto/greet.proto package proto diff --git a/examples/host-function-library/proto/greet_host.pb.go b/examples/host-function-library/proto/greet_host.pb.go index 1f65d29..7c3906d 100644 --- a/examples/host-function-library/proto/greet_host.pb.go +++ b/examples/host-function-library/proto/greet_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/proto/greet.proto package proto diff --git a/examples/host-function-library/proto/greet_options.pb.go b/examples/host-function-library/proto/greet_options.pb.go index 6799a61..09632aa 100644 --- a/examples/host-function-library/proto/greet_options.pb.go +++ b/examples/host-function-library/proto/greet_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/proto/greet.proto package proto diff --git a/examples/host-function-library/proto/greet_plugin.pb.go b/examples/host-function-library/proto/greet_plugin.pb.go index 34d9226..0bc6e3a 100644 --- a/examples/host-function-library/proto/greet_plugin.pb.go +++ b/examples/host-function-library/proto/greet_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/proto/greet.proto package proto @@ -57,9 +57,7 @@ func NewHostFunctions() HostFunctions { return hostFunctions{} } -//go:wasm-module env -//export san -//go:linkname _san +//go:wasmimport env san func _san(ptr uint32, size uint32) uint64 func (h hostFunctions) San(ctx context.Context, request *SanRequest) (*SanResponse, error) { diff --git a/examples/host-function-library/proto/greet_vtproto.pb.go b/examples/host-function-library/proto/greet_vtproto.pb.go index 202edd0..d8f14be 100644 --- a/examples/host-function-library/proto/greet_vtproto.pb.go +++ b/examples/host-function-library/proto/greet_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-function-library/proto/greet.proto package proto diff --git a/examples/host-functions/greeting/greet.pb.go b/examples/host-functions/greeting/greet.pb.go index 7faf961..128bddb 100644 --- a/examples/host-functions/greeting/greet.pb.go +++ b/examples/host-functions/greeting/greet.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-functions/greeting/greet.proto package greeting diff --git a/examples/host-functions/greeting/greet_host.pb.go b/examples/host-functions/greeting/greet_host.pb.go index 64a6fea..05670f1 100644 --- a/examples/host-functions/greeting/greet_host.pb.go +++ b/examples/host-functions/greeting/greet_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-functions/greeting/greet.proto package greeting diff --git a/examples/host-functions/greeting/greet_options.pb.go b/examples/host-functions/greeting/greet_options.pb.go index 4a34c8c..d32d70d 100644 --- a/examples/host-functions/greeting/greet_options.pb.go +++ b/examples/host-functions/greeting/greet_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-functions/greeting/greet.proto package greeting diff --git a/examples/host-functions/greeting/greet_plugin.pb.go b/examples/host-functions/greeting/greet_plugin.pb.go index 2e2a46e..738bc12 100644 --- a/examples/host-functions/greeting/greet_plugin.pb.go +++ b/examples/host-functions/greeting/greet_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-functions/greeting/greet.proto package greeting @@ -58,9 +58,7 @@ func NewHostFunctions() HostFunctions { return hostFunctions{} } -//go:wasm-module env -//export http_get -//go:linkname _http_get +//go:wasmimport env http_get func _http_get(ptr uint32, size uint32) uint64 func (h hostFunctions) HttpGet(ctx context.Context, request *HttpGetRequest) (*HttpGetResponse, error) { @@ -83,9 +81,7 @@ func (h hostFunctions) HttpGet(ctx context.Context, request *HttpGetRequest) (*H return response, nil } -//go:wasm-module env -//export log -//go:linkname _log +//go:wasmimport env log func _log(ptr uint32, size uint32) uint64 func (h hostFunctions) Log(ctx context.Context, request *LogRequest) (*emptypb.Empty, error) { diff --git a/examples/host-functions/greeting/greet_vtproto.pb.go b/examples/host-functions/greeting/greet_vtproto.pb.go index 9a43754..6dcef44 100644 --- a/examples/host-functions/greeting/greet_vtproto.pb.go +++ b/examples/host-functions/greeting/greet_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/host-functions/greeting/greet.proto package greeting diff --git a/examples/known-types/known/known.pb.go b/examples/known-types/known/known.pb.go index fc70393..0caad72 100644 --- a/examples/known-types/known/known.pb.go +++ b/examples/known-types/known/known.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/known-types/known/known.proto package known diff --git a/examples/known-types/known/known_host.pb.go b/examples/known-types/known/known_host.pb.go index cbabcef..92e53f0 100644 --- a/examples/known-types/known/known_host.pb.go +++ b/examples/known-types/known/known_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/known-types/known/known.proto package known diff --git a/examples/known-types/known/known_options.pb.go b/examples/known-types/known/known_options.pb.go index 96c44d8..e710514 100644 --- a/examples/known-types/known/known_options.pb.go +++ b/examples/known-types/known/known_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/known-types/known/known.proto package known diff --git a/examples/known-types/known/known_plugin.pb.go b/examples/known-types/known/known_plugin.pb.go index f13389b..905d8d1 100644 --- a/examples/known-types/known/known_plugin.pb.go +++ b/examples/known-types/known/known_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/known-types/known/known.proto package known diff --git a/examples/known-types/known/known_vtproto.pb.go b/examples/known-types/known/known_vtproto.pb.go index 3005bd3..5ffd183 100644 --- a/examples/known-types/known/known_vtproto.pb.go +++ b/examples/known-types/known/known_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/known-types/known/known.proto package known diff --git a/examples/wasi/cat/cat.pb.go b/examples/wasi/cat/cat.pb.go index 4d87d80..d5a9085 100644 --- a/examples/wasi/cat/cat.pb.go +++ b/examples/wasi/cat/cat.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/wasi/cat/cat.proto package cat diff --git a/examples/wasi/cat/cat_host.pb.go b/examples/wasi/cat/cat_host.pb.go index b66034e..6c7acbf 100644 --- a/examples/wasi/cat/cat_host.pb.go +++ b/examples/wasi/cat/cat_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/wasi/cat/cat.proto package cat diff --git a/examples/wasi/cat/cat_options.pb.go b/examples/wasi/cat/cat_options.pb.go index 3786a09..46dcb71 100644 --- a/examples/wasi/cat/cat_options.pb.go +++ b/examples/wasi/cat/cat_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/wasi/cat/cat.proto package cat diff --git a/examples/wasi/cat/cat_plugin.pb.go b/examples/wasi/cat/cat_plugin.pb.go index 804e058..ae24f07 100644 --- a/examples/wasi/cat/cat_plugin.pb.go +++ b/examples/wasi/cat/cat_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/wasi/cat/cat.proto package cat diff --git a/examples/wasi/cat/cat_vtproto.pb.go b/examples/wasi/cat/cat_vtproto.pb.go index 28e8e3b..4ab62ec 100644 --- a/examples/wasi/cat/cat_vtproto.pb.go +++ b/examples/wasi/cat/cat_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: examples/wasi/cat/cat.proto package cat diff --git a/gen/plugin.go b/gen/plugin.go index 4eb887d..a3c014f 100644 --- a/gen/plugin.go +++ b/gen/plugin.go @@ -103,9 +103,7 @@ func genHostFunctions(g *protogen.GeneratedFile, f *fileInfo) { for _, method := range f.hostService.Methods { importedName := toSnakeCase(method.GoName) g.P(fmt.Sprintf(` - //go:wasm-module %s - //export %s - //go:linkname _%s + //go:wasmimport %s %s func _%s(ptr uint32, size uint32) uint64 func (h %s) %s(ctx %s, request *%s) (*%s, error) { @@ -127,7 +125,7 @@ func genHostFunctions(g *protogen.GeneratedFile, f *fileInfo) { } return response, nil }`, - f.hostService.Module, importedName, importedName, importedName, structName, method.GoName, + f.hostService.Module, importedName, importedName, structName, method.GoName, g.QualifiedGoIdent(contextPackage.Ident("Context")), g.QualifiedGoIdent(method.Input.GoIdent), g.QualifiedGoIdent(method.Output.GoIdent), diff --git a/go.mod b/go.mod index 9323f9a..94f890e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/knqyf263/go-plugin -go 1.18 +go 1.20 require ( github.com/planetscale/vtprotobuf v0.4.0 diff --git a/tests/fields/proto/fields.pb.go b/tests/fields/proto/fields.pb.go index d197944..21b86bd 100644 --- a/tests/fields/proto/fields.pb.go +++ b/tests/fields/proto/fields.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/fields/proto/fields.proto package proto diff --git a/tests/fields/proto/fields_host.pb.go b/tests/fields/proto/fields_host.pb.go index 8ec4d8d..15d30dd 100644 --- a/tests/fields/proto/fields_host.pb.go +++ b/tests/fields/proto/fields_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/fields/proto/fields.proto package proto diff --git a/tests/fields/proto/fields_options.pb.go b/tests/fields/proto/fields_options.pb.go index f6f9c15..9084106 100644 --- a/tests/fields/proto/fields_options.pb.go +++ b/tests/fields/proto/fields_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/fields/proto/fields.proto package proto diff --git a/tests/fields/proto/fields_plugin.pb.go b/tests/fields/proto/fields_plugin.pb.go index f03be7a..253257a 100644 --- a/tests/fields/proto/fields_plugin.pb.go +++ b/tests/fields/proto/fields_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/fields/proto/fields.proto package proto diff --git a/tests/fields/proto/fields_vtproto.pb.go b/tests/fields/proto/fields_vtproto.pb.go index 74fcfb6..329dbc2 100644 --- a/tests/fields/proto/fields_vtproto.pb.go +++ b/tests/fields/proto/fields_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/fields/proto/fields.proto package proto diff --git a/tests/host-functions/proto/host.pb.go b/tests/host-functions/proto/host.pb.go index e141234..e2c01b6 100644 --- a/tests/host-functions/proto/host.pb.go +++ b/tests/host-functions/proto/host.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/host-functions/proto/host.proto package proto diff --git a/tests/host-functions/proto/host_host.pb.go b/tests/host-functions/proto/host_host.pb.go index d1c5567..9459a6b 100644 --- a/tests/host-functions/proto/host_host.pb.go +++ b/tests/host-functions/proto/host_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/host-functions/proto/host.proto package proto diff --git a/tests/host-functions/proto/host_options.pb.go b/tests/host-functions/proto/host_options.pb.go index a79893b..b8037a0 100644 --- a/tests/host-functions/proto/host_options.pb.go +++ b/tests/host-functions/proto/host_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/host-functions/proto/host.proto package proto diff --git a/tests/host-functions/proto/host_plugin.pb.go b/tests/host-functions/proto/host_plugin.pb.go index 51f4c1c..4263b83 100644 --- a/tests/host-functions/proto/host_plugin.pb.go +++ b/tests/host-functions/proto/host_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/host-functions/proto/host.proto package proto @@ -57,9 +57,7 @@ func NewHostFunctions() HostFunctions { return hostFunctions{} } -//go:wasm-module env -//export parse_json -//go:linkname _parse_json +//go:wasmimport env parse_json func _parse_json(ptr uint32, size uint32) uint64 func (h hostFunctions) ParseJson(ctx context.Context, request *ParseJsonRequest) (*ParseJsonResponse, error) { diff --git a/tests/host-functions/proto/host_vtproto.pb.go b/tests/host-functions/proto/host_vtproto.pb.go index be45a75..4568bae 100644 --- a/tests/host-functions/proto/host_vtproto.pb.go +++ b/tests/host-functions/proto/host_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/host-functions/proto/host.proto package proto diff --git a/tests/import/proto/bar/bar.pb.go b/tests/import/proto/bar/bar.pb.go index 7f589ca..e3fe29c 100644 --- a/tests/import/proto/bar/bar.pb.go +++ b/tests/import/proto/bar/bar.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/bar/bar.proto package bar diff --git a/tests/import/proto/bar/bar_host.pb.go b/tests/import/proto/bar/bar_host.pb.go index a1f16e4..a211244 100644 --- a/tests/import/proto/bar/bar_host.pb.go +++ b/tests/import/proto/bar/bar_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/bar/bar.proto package bar diff --git a/tests/import/proto/bar/bar_options.pb.go b/tests/import/proto/bar/bar_options.pb.go index 52783cf..b5d46e1 100644 --- a/tests/import/proto/bar/bar_options.pb.go +++ b/tests/import/proto/bar/bar_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/bar/bar.proto package bar diff --git a/tests/import/proto/bar/bar_plugin.pb.go b/tests/import/proto/bar/bar_plugin.pb.go index ad3e74b..96666d3 100644 --- a/tests/import/proto/bar/bar_plugin.pb.go +++ b/tests/import/proto/bar/bar_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/bar/bar.proto package bar diff --git a/tests/import/proto/bar/bar_vtproto.pb.go b/tests/import/proto/bar/bar_vtproto.pb.go index c7f2089..f5be207 100644 --- a/tests/import/proto/bar/bar_vtproto.pb.go +++ b/tests/import/proto/bar/bar_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/bar/bar.proto package bar diff --git a/tests/import/proto/foo/foo.pb.go b/tests/import/proto/foo/foo.pb.go index 1492daf..77b837b 100644 --- a/tests/import/proto/foo/foo.pb.go +++ b/tests/import/proto/foo/foo.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/foo/foo.proto package foo diff --git a/tests/import/proto/foo/foo_host.pb.go b/tests/import/proto/foo/foo_host.pb.go index d6b66a9..e7c8ace 100644 --- a/tests/import/proto/foo/foo_host.pb.go +++ b/tests/import/proto/foo/foo_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/foo/foo.proto package foo diff --git a/tests/import/proto/foo/foo_options.pb.go b/tests/import/proto/foo/foo_options.pb.go index 5b94e2e..be3eacf 100644 --- a/tests/import/proto/foo/foo_options.pb.go +++ b/tests/import/proto/foo/foo_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/foo/foo.proto package foo diff --git a/tests/import/proto/foo/foo_plugin.pb.go b/tests/import/proto/foo/foo_plugin.pb.go index 35872fc..bfc7451 100644 --- a/tests/import/proto/foo/foo_plugin.pb.go +++ b/tests/import/proto/foo/foo_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/foo/foo.proto package foo diff --git a/tests/import/proto/foo/foo_vtproto.pb.go b/tests/import/proto/foo/foo_vtproto.pb.go index d3cf116..de55ee1 100644 --- a/tests/import/proto/foo/foo_vtproto.pb.go +++ b/tests/import/proto/foo/foo_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/import/proto/foo/foo.proto package foo diff --git a/tests/well-known/proto/known.pb.go b/tests/well-known/proto/known.pb.go index 802c253..106a484 100644 --- a/tests/well-known/proto/known.pb.go +++ b/tests/well-known/proto/known.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/well-known/proto/known.proto package proto diff --git a/tests/well-known/proto/known_host.pb.go b/tests/well-known/proto/known_host.pb.go index 72963b0..7f67e95 100644 --- a/tests/well-known/proto/known_host.pb.go +++ b/tests/well-known/proto/known_host.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/well-known/proto/known.proto package proto diff --git a/tests/well-known/proto/known_options.pb.go b/tests/well-known/proto/known_options.pb.go index 8d33d49..14fcb22 100644 --- a/tests/well-known/proto/known_options.pb.go +++ b/tests/well-known/proto/known_options.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/well-known/proto/known.proto package proto diff --git a/tests/well-known/proto/known_plugin.pb.go b/tests/well-known/proto/known_plugin.pb.go index 51e17c0..c63e673 100644 --- a/tests/well-known/proto/known_plugin.pb.go +++ b/tests/well-known/proto/known_plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/well-known/proto/known.proto package proto diff --git a/tests/well-known/proto/known_vtproto.pb.go b/tests/well-known/proto/known_vtproto.pb.go index b7ebf05..9ca7dcf 100644 --- a/tests/well-known/proto/known_vtproto.pb.go +++ b/tests/well-known/proto/known_vtproto.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: tests/well-known/proto/known.proto package proto diff --git a/types/known/anypb/any.pb.go b/types/known/anypb/any.pb.go index 6e7329c..a9d3074 100644 --- a/types/known/anypb/any.pb.go +++ b/types/known/anypb/any.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/anypb/any.proto package anypb diff --git a/types/known/anypb/any_vtproto.pb.go b/types/known/anypb/any_vtproto.pb.go index 9336330..ed8ff06 100644 --- a/types/known/anypb/any_vtproto.pb.go +++ b/types/known/anypb/any_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/anypb/any.proto package anypb diff --git a/types/known/durationpb/duration.pb.go b/types/known/durationpb/duration.pb.go index e1ef4c4..88790b0 100644 --- a/types/known/durationpb/duration.pb.go +++ b/types/known/durationpb/duration.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/durationpb/duration.proto package durationpb diff --git a/types/known/durationpb/duration_vtproto.pb.go b/types/known/durationpb/duration_vtproto.pb.go index 35ecdb8..3ecfd2c 100644 --- a/types/known/durationpb/duration_vtproto.pb.go +++ b/types/known/durationpb/duration_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/durationpb/duration.proto package durationpb diff --git a/types/known/emptypb/empty.pb.go b/types/known/emptypb/empty.pb.go index 28db989..c5cf3ea 100644 --- a/types/known/emptypb/empty.pb.go +++ b/types/known/emptypb/empty.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/emptypb/empty.proto package emptypb diff --git a/types/known/emptypb/empty_vtproto.pb.go b/types/known/emptypb/empty_vtproto.pb.go index 6bacaf6..fac1b84 100644 --- a/types/known/emptypb/empty_vtproto.pb.go +++ b/types/known/emptypb/empty_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/emptypb/empty.proto package emptypb diff --git a/types/known/sourcecontextpb/source_context.pb.go b/types/known/sourcecontextpb/source_context.pb.go index d7475ec..8b76fc0 100644 --- a/types/known/sourcecontextpb/source_context.pb.go +++ b/types/known/sourcecontextpb/source_context.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/sourcecontextpb/source_context.proto package sourcecontextpb diff --git a/types/known/sourcecontextpb/source_context_vtproto.pb.go b/types/known/sourcecontextpb/source_context_vtproto.pb.go index 994686b..c9eac68 100644 --- a/types/known/sourcecontextpb/source_context_vtproto.pb.go +++ b/types/known/sourcecontextpb/source_context_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/sourcecontextpb/source_context.proto package sourcecontextpb diff --git a/types/known/structpb/struct.pb.go b/types/known/structpb/struct.pb.go index dee60b6..6b28160 100644 --- a/types/known/structpb/struct.pb.go +++ b/types/known/structpb/struct.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/structpb/struct.proto package structpb diff --git a/types/known/structpb/struct_vtproto.pb.go b/types/known/structpb/struct_vtproto.pb.go index ab26c85..cd40751 100644 --- a/types/known/structpb/struct_vtproto.pb.go +++ b/types/known/structpb/struct_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/structpb/struct.proto package structpb diff --git a/types/known/timestamppb/timestamp.pb.go b/types/known/timestamppb/timestamp.pb.go index 25a8a45..e027bbe 100644 --- a/types/known/timestamppb/timestamp.pb.go +++ b/types/known/timestamppb/timestamp.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/timestamppb/timestamp.proto package timestamppb diff --git a/types/known/timestamppb/timestamp_vtproto.pb.go b/types/known/timestamppb/timestamp_vtproto.pb.go index 69ed15f..1555b0b 100644 --- a/types/known/timestamppb/timestamp_vtproto.pb.go +++ b/types/known/timestamppb/timestamp_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/timestamppb/timestamp.proto package timestamppb diff --git a/types/known/typepb/type.pb.go b/types/known/typepb/type.pb.go index 5c7e66c..0a00b73 100644 --- a/types/known/typepb/type.pb.go +++ b/types/known/typepb/type.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/typepb/type.proto package typepb diff --git a/types/known/typepb/type_vtproto.pb.go b/types/known/typepb/type_vtproto.pb.go index 02cadfc..394cb06 100644 --- a/types/known/typepb/type_vtproto.pb.go +++ b/types/known/typepb/type_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/typepb/type.proto package typepb diff --git a/types/known/wrapperspb/wrappers.pb.go b/types/known/wrapperspb/wrappers.pb.go index 1715e47..f98018b 100644 --- a/types/known/wrapperspb/wrappers.pb.go +++ b/types/known/wrapperspb/wrappers.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/wrapperspb/wrappers.proto package wrapperspb diff --git a/types/known/wrapperspb/wrappers_vtproto.pb.go b/types/known/wrapperspb/wrappers_vtproto.pb.go index 1333e09..222451e 100644 --- a/types/known/wrapperspb/wrappers_vtproto.pb.go +++ b/types/known/wrapperspb/wrappers_vtproto.pb.go @@ -6,7 +6,7 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v4.25.2 // source: types/known/wrapperspb/wrappers.proto package wrapperspb