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

AuthorAnders Fugmann <anders@fugmann.net>
LicenseAPACHE-2.0
Published
Homepagehttps://github.com/andersfugmann/ocaml-protoc-plugin
Issue Trackerhttps://github.com/andersfugmann/ocaml-protoc-plugin/issues
MaintainerAnders 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
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.6.2.0/opam