First of all, I really like protobuf-net for it's speed and it's ease of use. Now I'm developing a .NET class library and want to make some of my classes protobuf-net-ready without actually referencing it, because:
- I don't know which environment my clients will use, so I don't know which protobuf-net binary to choose
- I want to minimize the footprint size (maybe they won't need serialization at all)
As I understand, this can be done by writing .proto files manually. Could anyone explain me or give a link how to do this? Is there a way to generate .proto files from attribute description? And how will the client serialization/deserialization code look like?