dproto
dproto copied to clipboard
D Protocol Buffer mixins to create structures at compile time
Hi. I'm thinking about writing a dlang wrapper for grpc - starting with bindings to Juniper's grpc-c (the C API of grpc is a bit uneven), then a simple wrapper...
enum wireType = getAnnotation!(__field, ProtoField).wireType; p219; when i test the function,the 'wireType' always is 2 ?so ,how to it work that 'if (wireType.msgType != PACKED_MSG_TYPE && __msgdata.wireType == PACKED_MSG_TYPE) ';
@msoucy I have a large proto file, and get this error: ``` ~/.dub/packages/dproto-2.1.1/dproto/import/dproto/parse.d(511,11): Error: uncaught CTFE exception dproto.exception.DProtoSyntaxException("Expected an integer but was ``") ``` it should show offending line number...
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message if not, could that be on the roadmap? for reference: see also https://github.com/google/protobuf/issues/3106#issuecomment-302232227
@msoucy ``` mixin ProtocolBufferFromString!" package foo.bar; message Person {...} "; void test(){ static assert(Person.fqname=="foo.bar.Person"); } ``` is there anything similar to fqname? (static method returning at compile time the fully...
https://github.com/google/protobuf/blob/master/CHANGES.txt "In proto3, the language is simplified, both for ease of use and to make it available in a wider range of programming languages. At the same time a few...
Thanks for a nice library. Does dproto support parsing of proto IDLs in protobuf version 3 format? AFAIK, the wire-format between version 2 and 3 are compatible. So if the...
Beautify the generated code add option to dprotoc to generated code
2.0.0 breaks this functionality which was available in 1.3.x.
would be nice to support conversions, when possible: eg: ``` d Person1 proto; Person2 s; proto.deserialize("..."); s.readFrom(proto); Person1 proto2; proto2.readFrom(s); assert(proto2==proto); ``` ``` proto message Person1 { required string name...