D Support for Protocol Buffers
This D package implements the Protocol Buffers encoding and decoding operations for both binary and JSON formats. The support library uses the generated D code that defines the messages and enum types.
Together with this library D generation support was added to
generated code is very simple and easy to read.
protoc-gen-d plugin generates D code for proto3
The Protocol Buffers D support library is distributed as DUB package. Use the instructions there about how to integrate it in your project.
The DUB package contains the support library and the
plugin. In order to have the D code generation available (
protoc-gen-d needs to be specified to
protoc invocation via
option. Please see the Protocol Buffers README about installing
Run following commands:
dub build :protoc-gen-d cd examples dub build :add_person dub build :list_people
protocversion 3.0 or newer
- Protobuf well known types
.protofiles installed or accessible for