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 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.2.0/ocaml-protoc-plugin-6.2.0.tbz sha256=46a87788d39e09d5e824fcab29718f9625787f5b0ffb8fad3bb412567c01ecf6 sha512=bffcbe124320c028cf30b7ff7a69aa214d29eeae9fea0ace4739bcc040fde3d6896a01a075fb6b66832a061d4f3ab185ddbb03235781ddea4a618f9e29626586 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.6.2.0/opam |
Required by