diff --git a/examples/helloworld/greeting/greet.pb.go b/examples/helloworld/greeting/greet.pb.go index 6682544..d6faa32 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 v3.21.1 // 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..3731db6 100644 --- a/examples/helloworld/greeting/greet_host.pb.go +++ b/examples/helloworld/greeting/greet_host.pb.go @@ -3,18 +3,20 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: examples/helloworld/greeting/greet.proto package greeting import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -52,6 +54,14 @@ func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string) (greeter, e return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *GreeterPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (greeter, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/examples/helloworld/greeting/greet_options.pb.go b/examples/helloworld/greeting/greet_options.pb.go index c47d13a..a224260 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 v3.21.1 // 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..d773b2d 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 v3.21.1 // 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 dc0a8c3..a501e33 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 v3.21.1 // 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..b8fdc9e 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 v3.21.1 // 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..01843bf 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 v3.21.1 // 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..a6ce6d8 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 v3.21.1 // 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 0c151e4..4c3dd97 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 v3.21.1 // 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..915d394 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 v3.21.1 // 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..0ed9c1b 100644 --- a/examples/host-function-library/proto/greet_host.pb.go +++ b/examples/host-function-library/proto/greet_host.pb.go @@ -3,12 +3,13 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: examples/host-function-library/proto/greet.proto package proto import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" @@ -16,6 +17,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -102,6 +104,14 @@ func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctio return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b), hostFunctions) +} +func (p *GreeterPlugin) LoadFromBinary(ctx context.Context, reader io.Reader, hostFunctions HostFunctions) (greeter, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/examples/host-function-library/proto/greet_options.pb.go b/examples/host-function-library/proto/greet_options.pb.go index 6799a61..7e47a45 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 v3.21.1 // 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..dc6d684 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 v3.21.1 // 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 1245f63..a6472a1 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 v3.21.1 // 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..acb0e11 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 v3.21.1 // 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..5975189 100644 --- a/examples/host-functions/greeting/greet_host.pb.go +++ b/examples/host-functions/greeting/greet_host.pb.go @@ -3,12 +3,13 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: examples/host-functions/greeting/greet.proto package greeting import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" @@ -16,6 +17,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -138,6 +140,14 @@ func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctio return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b), hostFunctions) +} +func (p *GreeterPlugin) LoadFromBinary(ctx context.Context, reader io.Reader, hostFunctions HostFunctions) (greeter, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/examples/host-functions/greeting/greet_options.pb.go b/examples/host-functions/greeting/greet_options.pb.go index 4a34c8c..6e970d8 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 v3.21.1 // 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..01e7c1e 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 v3.21.1 // 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 234318d..247f096 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 v3.21.1 // 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..8e00bd7 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 v3.21.1 // 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..7b69f98 100644 --- a/examples/known-types/known/known_host.pb.go +++ b/examples/known-types/known/known_host.pb.go @@ -3,18 +3,20 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: examples/known-types/known/known.proto package known import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -52,6 +54,14 @@ func (p *WellKnownPlugin) Load(ctx context.Context, pluginPath string) (wellKnow return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *WellKnownPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (wellKnown, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/examples/known-types/known/known_options.pb.go b/examples/known-types/known/known_options.pb.go index 96c44d8..05497be 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 v3.21.1 // 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..e5e4839 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 v3.21.1 // 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 33bda6a..9c7b8c4 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 v3.21.1 // 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..6d9e6f4 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 v3.21.1 // 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..a52ca17 100644 --- a/examples/wasi/cat/cat_host.pb.go +++ b/examples/wasi/cat/cat_host.pb.go @@ -3,18 +3,20 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: examples/wasi/cat/cat.proto package cat import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -52,6 +54,14 @@ func (p *FileCatPlugin) Load(ctx context.Context, pluginPath string) (fileCat, e return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *FileCatPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (fileCat, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/examples/wasi/cat/cat_options.pb.go b/examples/wasi/cat/cat_options.pb.go index 3786a09..a16c65e 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 v3.21.1 // 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..b87c43f 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 v3.21.1 // 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 c7ee444..f25f598 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 v3.21.1 // source: examples/wasi/cat/cat.proto package cat diff --git a/gen/host.go b/gen/host.go index fb13c51..b45333a 100644 --- a/gen/host.go +++ b/gen/host.go @@ -161,7 +161,7 @@ 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 exportHostFunctions = ` @@ -170,6 +170,7 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) { if err := h.Instantiate(ctx, r); err != nil { return nil, err }` + hostFunctionsParam = ", hostFunctions" } g.P(fmt.Sprintf(` @@ -183,6 +184,7 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) { service.GoName, )) + // Load method g.P(fmt.Sprintf("func (p *%s) Load(ctx %s, pluginPath string %s) (%s, error) {", pluginName, g.QualifiedGoIdent(contextPackage.Ident("Context")), @@ -194,6 +196,26 @@ func genHost(g *protogen.GeneratedFile, f *fileInfo, service *serviceInfo) { if err != nil { return nil, err } + + return p.LoadFromBinary(ctx, %s(b) %s) + }`, + g.QualifiedGoIdent(osPackage.Ident("ReadFile")), + g.QualifiedGoIdent(bytesPackage.Ident("NewReader")), + hostFunctionsParam, + )) + + g.P(fmt.Sprintf("func (p *%s) LoadFromBinary(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 + } // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) @@ -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")), diff --git a/gen/main.go b/gen/main.go index 3d96403..8adc913 100644 --- a/gen/main.go +++ b/gen/main.go @@ -51,6 +51,7 @@ const ( stringsPackage = protogen.GoImportPath("strings") syncPackage = protogen.GoImportPath("sync") timePackage = protogen.GoImportPath("time") + bytesPackage = protogen.GoImportPath("bytes") knownTypesPrefix = "google.golang.org/protobuf/types/known/" diff --git a/tests/fields/proto/fields.pb.go b/tests/fields/proto/fields.pb.go index d197944..dbc5ea8 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 v3.21.1 // 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..50d6149 100644 --- a/tests/fields/proto/fields_host.pb.go +++ b/tests/fields/proto/fields_host.pb.go @@ -3,12 +3,13 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: tests/fields/proto/fields.proto package proto import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" @@ -16,6 +17,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -53,6 +55,14 @@ func (p *FieldTestPlugin) Load(ctx context.Context, pluginPath string) (fieldTes return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *FieldTestPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (fieldTest, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/tests/fields/proto/fields_options.pb.go b/tests/fields/proto/fields_options.pb.go index f6f9c15..75bdea0 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 v3.21.1 // 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..ed9bd2e 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 v3.21.1 // 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 dd716c9..ec4ef3d 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 v3.21.1 // 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..a816f81 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 v3.21.1 // 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..5eb4b9c 100644 --- a/tests/host-functions/proto/host_host.pb.go +++ b/tests/host-functions/proto/host_host.pb.go @@ -3,12 +3,13 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: tests/host-functions/proto/host.proto package proto import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" @@ -16,6 +17,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -102,6 +104,14 @@ func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctio return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b), hostFunctions) +} +func (p *GreeterPlugin) LoadFromBinary(ctx context.Context, reader io.Reader, hostFunctions HostFunctions) (greeter, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/tests/host-functions/proto/host_options.pb.go b/tests/host-functions/proto/host_options.pb.go index a79893b..9e441d3 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 v3.21.1 // 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..964ee05 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 v3.21.1 // 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 666b887..7929472 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 v3.21.1 // 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..f78aa42 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 v3.21.1 // 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..42b0142 100644 --- a/tests/import/proto/bar/bar_host.pb.go +++ b/tests/import/proto/bar/bar_host.pb.go @@ -3,18 +3,20 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: tests/import/proto/bar/bar.proto package bar import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -52,6 +54,14 @@ func (p *BarPlugin) Load(ctx context.Context, pluginPath string) (bar, error) { return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *BarPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (bar, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/tests/import/proto/bar/bar_options.pb.go b/tests/import/proto/bar/bar_options.pb.go index 52783cf..90d210c 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 v3.21.1 // 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..f709243 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 v3.21.1 // 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 0ad02e0..a565b8f 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 v3.21.1 // 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..4000640 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 v3.21.1 // 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..b4ed6d5 100644 --- a/tests/import/proto/foo/foo_host.pb.go +++ b/tests/import/proto/foo/foo_host.pb.go @@ -3,12 +3,13 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: tests/import/proto/foo/foo.proto package foo import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" @@ -16,6 +17,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -53,6 +55,14 @@ func (p *FooPlugin) Load(ctx context.Context, pluginPath string) (foo, error) { return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *FooPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (foo, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/tests/import/proto/foo/foo_options.pb.go b/tests/import/proto/foo/foo_options.pb.go index 5b94e2e..872ec0c 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 v3.21.1 // 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..9c03a2f 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 v3.21.1 // 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 d3087e6..f4b94af 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 v3.21.1 // 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..b3d408c 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 v3.21.1 // 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..b2b8e3b 100644 --- a/tests/well-known/proto/known_host.pb.go +++ b/tests/well-known/proto/known_host.pb.go @@ -3,12 +3,13 @@ // Code generated by protoc-gen-go-plugin. DO NOT EDIT. // versions: // protoc-gen-go-plugin v0.1.0 -// protoc v3.21.12 +// protoc v3.21.1 // source: tests/well-known/proto/known.proto package proto import ( + bytes "bytes" context "context" errors "errors" fmt "fmt" @@ -16,6 +17,7 @@ import ( wazero "github.com/tetratelabs/wazero" api "github.com/tetratelabs/wazero/api" sys "github.com/tetratelabs/wazero/sys" + io "io" os "os" ) @@ -53,6 +55,14 @@ func (p *KnownTypesTestPlugin) Load(ctx context.Context, pluginPath string) (kno return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *KnownTypesTestPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (knownTypesTest, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { @@ -226,6 +236,14 @@ func (p *EmptyTestPlugin) Load(ctx context.Context, pluginPath string) (emptyTes return nil, err } + return p.LoadFromBinary(ctx, bytes.NewReader(b)) +} +func (p *EmptyTestPlugin) LoadFromBinary(ctx context.Context, reader io.Reader) (emptyTest, error) { + b, err := io.ReadAll(reader) + if err != nil { + return nil, err + } + // Create a new runtime so that multiple modules will not conflict r, err := p.newRuntime(ctx) if err != nil { diff --git a/tests/well-known/proto/known_options.pb.go b/tests/well-known/proto/known_options.pb.go index 8d33d49..b0aa703 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 v3.21.1 // 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..2d5f869 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 v3.21.1 // 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 00fb537..6cb8489 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 v3.21.1 // 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..12ce362 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 v3.21.1 // 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 2197434..262f136 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 v3.21.1 // 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..db57bd1 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 v3.21.1 // 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 3bc27aa..597ffc5 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 v3.21.1 // 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..ce9587f 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 v3.21.1 // 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 15e3c8b..4d4da38 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 v3.21.1 // 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..3fc30e4 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 v3.21.1 // 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 d1aad05..30a15c4 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 v3.21.1 // 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..dd765e0 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 v3.21.1 // 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 d074ff4..5cb745c 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 v3.21.1 // 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..327684c 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 v3.21.1 // 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 74d0a9b..202df3b 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 v3.21.1 // 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..fb96ac9 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 v3.21.1 // 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 2752dfe..c34da8d 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 v3.21.1 // 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..1b15da6 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 v3.21.1 // 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 08d06e9..5c81aec 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 v3.21.1 // source: types/known/wrapperspb/wrappers.proto package wrapperspb