[protobuf] Customizing protoc to support an existing wire format

2014-05-27 Thread Chris Beams
Hello, I'd like to see if any prior work has been done in customizing protobuf compilation to support message encoding/decoding against a legacy wire format. Put another way, I'm interested in: 1. specifying an existing protocol using protobuf's .proto file syntax, and 2. reusing protobuf's

Re: [protobuf] Customizing protoc to support an existing wire format

2014-05-27 Thread 'Feng Xiao' via Protocol Buffers
There are two ways to support custom wire format with protobufs. 1. Implement the parsing/serializing code as a runtime library. The text format support in protobuf can be seen as such a library. Support for Json/XML is also done using this approach. It relies on the protobuf reflection support

Re: [protobuf] Customizing protoc to support an existing wire format

2014-05-27 Thread David Yu
On Mon, May 26, 2014 at 6:56 PM, Chris Beams ch...@beams.io wrote: Hello, I'd like to see if any prior work has been done in customizing protobuf compilation to support message encoding/decoding against a legacy wire format. Put another way, I'm interested in: 1. specifying an existing