go-plugin
go-plugin copied to clipboard
Switch to protobuf-go-lite
I think using this protocol plugin https://github.com/aperturerobotics/protobuf-go-lite would simplify generation of compatible protobuf marshaller/unmarshaller for both host and guest.
I agree it could be worth looking into. I've had some trouble even using the latest version of go-plugin when using some google protobuf well known types like google.protobuf.Struct with the latest go1.24 wasm/wasi support (if I recall, there was a compile error regarding reflect.SliceOf or something along those lines).
Switching to building off a generator based on entirely eliminating reflection should hopefully mitigate those kind of things.