diff --git a/examples/helloworld/greeting/greet.pb.go b/examples/helloworld/greeting/greet.pb.go index 66f9b3b..33aedd0 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 v5.29.3 +// protoc v6.30.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 6b93eb0..8ac732c 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 v5.29.3 +// protoc v6.30.2 // source: examples/helloworld/greeting/greet.proto package greeting @@ -15,6 +15,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -47,7 +48,17 @@ type greeter interface { } func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string) (greeter, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *GreeterPlugin) LoadReader(ctx context.Context, reader io.Reader) (greeter, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/examples/helloworld/greeting/greet_options.pb.go b/examples/helloworld/greeting/greet_options.pb.go index a5ac9c0..5bf0003 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 v5.29.3 +// protoc v6.30.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 5137c32..991de32 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 v5.29.3 +// protoc v6.30.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 860e42c..e55f730 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 v5.29.3 +// protoc v6.30.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 5f0ede4..64c2d48 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 v5.29.3 +// protoc v6.30.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 2ddb090..571e6dc 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 v5.29.3 +// protoc v6.30.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 db69648..df6e859 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 v5.29.3 +// protoc v6.30.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_vtproto.pb.go b/examples/host-function-library/library/json-parser/export/library_vtproto.pb.go index 738cf4e..4820948 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 v5.29.3 +// protoc v6.30.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 a8c8015..cae2dce 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 v5.29.3 +// protoc v6.30.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 c007e36..e51b8c6 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 v5.29.3 +// protoc v6.30.2 // source: examples/host-function-library/proto/greet.proto package proto @@ -16,6 +16,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -97,7 +98,17 @@ type greeter interface { } func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctions HostFunctions) (greeter, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f, hostFunctions) +} + +func (p *GreeterPlugin) LoadReader(ctx context.Context, reader io.Reader, hostFunctions HostFunctions) (greeter, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/examples/host-function-library/proto/greet_options.pb.go b/examples/host-function-library/proto/greet_options.pb.go index 4a69bd5..ea73ce0 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 v5.29.3 +// protoc v6.30.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 1fd8347..a379c86 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 v5.29.3 +// protoc v6.30.2 // source: examples/host-function-library/proto/greet.proto package proto diff --git a/examples/host-function-library/proto/greet_vtproto.pb.go b/examples/host-function-library/proto/greet_vtproto.pb.go index c1333e7..8664528 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 v5.29.3 +// protoc v6.30.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 cac562d..3d8eaf7 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 v5.29.3 +// protoc v6.30.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 cf75fb9..636f561 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 v5.29.3 +// protoc v6.30.2 // source: examples/host-functions/greeting/greet.proto package greeting @@ -16,6 +16,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -133,7 +134,17 @@ type greeter interface { } func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctions HostFunctions) (greeter, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f, hostFunctions) +} + +func (p *GreeterPlugin) LoadReader(ctx context.Context, reader io.Reader, hostFunctions HostFunctions) (greeter, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/examples/host-functions/greeting/greet_options.pb.go b/examples/host-functions/greeting/greet_options.pb.go index 0ee0be5..d927521 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 v5.29.3 +// protoc v6.30.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 8ec29a7..c904c82 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 v5.29.3 +// protoc v6.30.2 // source: examples/host-functions/greeting/greet.proto package greeting diff --git a/examples/host-functions/greeting/greet_vtproto.pb.go b/examples/host-functions/greeting/greet_vtproto.pb.go index 62f9855..9c673a4 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 v5.29.3 +// protoc v6.30.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 5096df0..3cd7019 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 v5.29.3 +// protoc v6.30.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 1052cbf..46127b6 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 v5.29.3 +// protoc v6.30.2 // source: examples/known-types/known/known.proto package known @@ -15,6 +15,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -47,7 +48,17 @@ type wellKnown interface { } func (p *WellKnownPlugin) Load(ctx context.Context, pluginPath string) (wellKnown, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *WellKnownPlugin) LoadReader(ctx context.Context, reader io.Reader) (wellKnown, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/examples/known-types/known/known_options.pb.go b/examples/known-types/known/known_options.pb.go index 9f29f23..73deba2 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 v5.29.3 +// protoc v6.30.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 2e131ba..5a3e86c 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 v5.29.3 +// protoc v6.30.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 01fa15b..0a52219 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 v5.29.3 +// protoc v6.30.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 bc0fa68..07f4db2 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 v5.29.3 +// protoc v6.30.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 e656f28..4b3e35e 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 v5.29.3 +// protoc v6.30.2 // source: examples/wasi/cat/cat.proto package cat @@ -15,6 +15,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -47,7 +48,17 @@ type fileCat interface { } func (p *FileCatPlugin) Load(ctx context.Context, pluginPath string) (fileCat, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *FileCatPlugin) LoadReader(ctx context.Context, reader io.Reader) (fileCat, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/examples/wasi/cat/cat_options.pb.go b/examples/wasi/cat/cat_options.pb.go index 8a911df..c514e70 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 v5.29.3 +// protoc v6.30.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 2c31fac..b8cf3aa 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 v5.29.3 +// protoc v6.30.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 1256c98..01f2c9e 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 v5.29.3 +// protoc v6.30.2 // source: examples/wasi/cat/cat.proto package cat diff --git a/gen/host.go b/gen/host.go index 715a2f9..4e3e66e 100644 --- a/gen/host.go +++ b/gen/host.go @@ -161,9 +161,10 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) { // Plugin loading structName := strings.ToLower(service.GoName[:1]) + service.GoName[1:] - var hostFunctionsArg, exportHostFunctions string + var hostFunctionsArg, exportHostFunctions, hostFunctionsParam string if f.hostService != nil { - hostFunctionsArg = ", hostFunctions " + f.hostService.GoName + hostFunctionsParam = ", hostFunctions" + hostFunctionsArg = hostFunctionsParam + " " + f.hostService.GoName exportHostFunctions = ` h := _` + strings.ToLower(f.hostService.GoName[:1]) + f.hostService.GoName[1:] + `{hostFunctions} @@ -190,7 +191,28 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) { structName, )) - g.P(fmt.Sprintf(`b, err := %s(pluginPath) + g.P(fmt.Sprintf(`f, err := %s(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f %s) + } + `, + g.QualifiedGoIdent(osPackage.Ident("Open")), + hostFunctionsParam, + )) + + g.P(fmt.Sprintf("func (p *%s) LoadReader(ctx %s, reader %s %s) (%s, error) {", + pluginName, + g.QualifiedGoIdent(contextPackage.Ident("Context")), + g.QualifiedGoIdent(ioPackage.Ident("Reader")), + hostFunctionsArg, + structName, + )) + + g.P(fmt.Sprintf(`b, err := %s(reader) if err != nil { return nil, err } @@ -235,7 +257,7 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) { return nil, fmt.Errorf("API version mismatch, host: %%d, plugin: %%d", %sAPIVersion, results[0]) } `, - g.QualifiedGoIdent(osPackage.Ident("ReadFile")), + g.QualifiedGoIdent(ioPackage.Ident("ReadAll")), exportHostFunctions, g.QualifiedGoIdent(wazeroSysPackage.Ident("ExitError")), g.QualifiedGoIdent(fmtPackage.Ident("Errorf")), @@ -385,8 +407,10 @@ func genPluginMethod(g *protogen.GeneratedFile, f *fileInfo, method *protogen.Me g.P("}") } -var matchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)") -var matchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])") +var ( + matchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)") + matchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])") +) func toSnakeCase(str string) string { snake := matchFirstCap.ReplaceAllString(str, "${1}_${2}") diff --git a/tests/fields/proto/fields.pb.go b/tests/fields/proto/fields.pb.go index c4cbad1..81103f2 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 v5.29.3 +// protoc v6.30.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 84f5c64..f073779 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 v5.29.3 +// protoc v6.30.2 // source: tests/fields/proto/fields.proto package proto @@ -16,6 +16,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -48,7 +49,17 @@ type fieldTest interface { } func (p *FieldTestPlugin) Load(ctx context.Context, pluginPath string) (fieldTest, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *FieldTestPlugin) LoadReader(ctx context.Context, reader io.Reader) (fieldTest, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/tests/fields/proto/fields_options.pb.go b/tests/fields/proto/fields_options.pb.go index 9a42ce5..710489f 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 v5.29.3 +// protoc v6.30.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 4979db9..f97c6b1 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 v5.29.3 +// protoc v6.30.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 d65af2a..eabba68 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 v5.29.3 +// protoc v6.30.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 80081ac..0f14739 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 v5.29.3 +// protoc v6.30.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 f1a9858..858658e 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 v5.29.3 +// protoc v6.30.2 // source: tests/host-functions/proto/host.proto package proto @@ -16,6 +16,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -97,7 +98,17 @@ type greeter interface { } func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctions HostFunctions) (greeter, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f, hostFunctions) +} + +func (p *GreeterPlugin) LoadReader(ctx context.Context, reader io.Reader, hostFunctions HostFunctions) (greeter, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/tests/host-functions/proto/host_options.pb.go b/tests/host-functions/proto/host_options.pb.go index b29490c..7b96883 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 v5.29.3 +// protoc v6.30.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 d2d7ad2..99b71e6 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 v5.29.3 +// protoc v6.30.2 // source: tests/host-functions/proto/host.proto package proto diff --git a/tests/host-functions/proto/host_vtproto.pb.go b/tests/host-functions/proto/host_vtproto.pb.go index 9d00d10..e671f0d 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 v5.29.3 +// protoc v6.30.2 // source: tests/host-functions/proto/host.proto package proto diff --git a/tests/import/import_test.go b/tests/import/import_test.go index 2a726f8..858c987 100644 --- a/tests/import/import_test.go +++ b/tests/import/import_test.go @@ -2,6 +2,7 @@ package main import ( "context" + "os" "testing" "github.com/stretchr/testify/assert" @@ -29,3 +30,26 @@ func TestImport(t *testing.T) { } assert.Equal(t, want, got) } + +func TestImportReader(t *testing.T) { + ctx := context.Background() + p, err := foo.NewFooPlugin(ctx) + require.NoError(t, err) + + f, err := os.Open("plugin/plugin.wasm") + require.NoError(t, err) + defer f.Close() + + plugin, err := p.LoadReader(ctx, f) + require.NoError(t, err) + defer plugin.Close(ctx) + + got, err := plugin.Hello(ctx, &foo.Request{ + A: "Hi", + }) + + want := &bar.Reply{ + A: "Hi, bar", + } + assert.Equal(t, want, got) +} diff --git a/tests/import/proto/bar/bar.pb.go b/tests/import/proto/bar/bar.pb.go index 0ef6e94..e830615 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 v5.29.3 +// protoc v6.30.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 ad194bf..8beaa48 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 v5.29.3 +// protoc v6.30.2 // source: tests/import/proto/bar/bar.proto package bar @@ -15,6 +15,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -47,7 +48,17 @@ type bar interface { } func (p *BarPlugin) Load(ctx context.Context, pluginPath string) (bar, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *BarPlugin) LoadReader(ctx context.Context, reader io.Reader) (bar, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/tests/import/proto/bar/bar_options.pb.go b/tests/import/proto/bar/bar_options.pb.go index 735aa1e..2d2c225 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 v5.29.3 +// protoc v6.30.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 8601595..64b0edc 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 v5.29.3 +// protoc v6.30.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 1fd0829..b0e0123 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 v5.29.3 +// protoc v6.30.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 2d0c98f..e08c8fb 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 v5.29.3 +// protoc v6.30.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 51433f6..a82641d 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 v5.29.3 +// protoc v6.30.2 // source: tests/import/proto/foo/foo.proto package foo @@ -16,6 +16,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -48,7 +49,17 @@ type foo interface { } func (p *FooPlugin) Load(ctx context.Context, pluginPath string) (foo, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *FooPlugin) LoadReader(ctx context.Context, reader io.Reader) (foo, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/tests/import/proto/foo/foo_options.pb.go b/tests/import/proto/foo/foo_options.pb.go index aabce6c..eda66e0 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 v5.29.3 +// protoc v6.30.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 1f0f666..9b46b7c 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 v5.29.3 +// protoc v6.30.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 dedbb24..12ba3b8 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 v5.29.3 +// protoc v6.30.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 d9b112a..4814c89 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 v5.29.3 +// protoc v6.30.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 f9811bb..b90a140 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 v5.29.3 +// protoc v6.30.2 // source: tests/well-known/proto/known.proto package proto @@ -16,6 +16,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -48,7 +49,17 @@ type knownTypesTest interface { } func (p *KnownTypesTestPlugin) Load(ctx context.Context, pluginPath string) (knownTypesTest, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *KnownTypesTestPlugin) LoadReader(ctx context.Context, reader io.Reader) (knownTypesTest, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } @@ -221,7 +232,17 @@ type emptyTest interface { } func (p *EmptyTestPlugin) Load(ctx context.Context, pluginPath string) (emptyTest, error) { - b, err := os.ReadFile(pluginPath) + f, err := os.Open(pluginPath) + if err != nil { + return nil, err + } + defer f.Close() + + return p.LoadReader(ctx, f) +} + +func (p *EmptyTestPlugin) LoadReader(ctx context.Context, reader io.Reader) (emptyTest, error) { + b, err := io.ReadAll(reader) if err != nil { return nil, err } diff --git a/tests/well-known/proto/known_options.pb.go b/tests/well-known/proto/known_options.pb.go index 81844c9..4a2ed98 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 v5.29.3 +// protoc v6.30.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 3856e66..7490d31 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 v5.29.3 +// protoc v6.30.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 cb26fb8..0d3b9b9 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 v5.29.3 +// protoc v6.30.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 923e6ba..1ceed0b 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 v5.29.3 +// protoc v6.30.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 7bacc33..2ca2d32 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 v5.29.3 +// protoc v6.30.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 8105397..5b962b1 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 v5.29.3 +// protoc v6.30.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 f8719c2..f9d502e 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 v5.29.3 +// protoc v6.30.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 924c817..5319ad3 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 v5.29.3 +// protoc v6.30.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 5dd032a..d312ff5 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 v5.29.3 +// protoc v6.30.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 d501092..ca7e5e6 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 v5.29.3 +// protoc v6.30.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 5bc7bc3..80418cf 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 v5.29.3 +// protoc v6.30.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 2d67e59..95f7e42 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 v5.29.3 +// protoc v6.30.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 eaa5d13..debecb2 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 v5.29.3 +// protoc v6.30.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 1a366e8..5bcd45d 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 v5.29.3 +// protoc v6.30.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 ee50941..1a4cd57 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 v5.29.3 +// protoc v6.30.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 5d6b40c..2fad498 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 v5.29.3 +// protoc v6.30.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 f56a519..9b772e2 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 v5.29.3 +// protoc v6.30.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 b380f50..1f97cb0 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 v5.29.3 +// protoc v6.30.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 7802cab..2d6e492 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 v5.29.3 +// protoc v6.30.2 // source: types/known/wrapperspb/wrappers.proto package wrapperspb