ocaml-protoc-pluginversion
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file
The plugin generates ocaml type definitions, serialization and deserialization functions from a protobuf file. The types generated aims to create ocaml idiomatic types;
- messages are mapped into modules
- oneof constructs are mapped to polymorphic variants
- enums are mapped to adt's
- map types are mapped to assoc lists
- all integer types are mapped to int by default (exact mapping is also possible)
- all floating point types are mapped to float.
- packages are mapped to nested modules
The package aims to be a 100% compliant protobuf implementation. It also includes serializing to and from json (Yojson format) based on protobuf json specification
Author | Anders Fugmann <anders@fugmann.net> |
---|---|
License | APACHE-2.0 |
Published | |
Homepage | https://github.com/andersfugmann/ocaml-protoc-plugin |
Issue Tracker | https://github.com/andersfugmann/ocaml-protoc-plugin/issues |
Maintainer | Anders Fugmann |
Dependencies |
|
Source [http] | https://github.com/andersfugmann/ocaml-protoc-plugin/releases/download/6.1.0/ocaml-protoc-plugin-6.1.0.tbz sha256=6254d1c7bf9e41f5fd52c1cf53f3dea93d302ed38cfaf604e8360601a368c57b sha512=aa81ac6eacbf0dd6fea07c3e9e2eb0aebc8031853ef1cad770497501a2222794c61a1dca9f6b6711039fb49474e55daebf4ad73be9191d6a585f57de3e2d816b |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.6.1.0/opam |
Required by