-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proto3 repeated elements do not work #99
Comments
Can you be more specific? |
I'm pretty sure this is the issue: https://developers.google.com/protocol-buffers/docs/encoding#packed When using a different protocol buffers implementation server-side (erlang gpb) and specifying proto3 syntax, repeated types will not be packed by quick-protobuf and as a result will fail to deserialize on the server. |
Could you please write a failing test for me? .proto file (packed per default) |
I think the problem is that packing is used on non-primitive types.
The above proto file will be considered invalid by protoc: While it will compile fine with quick-protobuf/codegen |
You can try it with: https://github.com/SergejJurecko/qptest/ cargo run or make protoc |
That's interesting, thank you! |
Close for #68 |
proto3 changes how repeated elements are serialized and quick-protobuf is incompatible. Is this a known issue?
The text was updated successfully, but these errors were encountered: