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
AuthorAnders Fugmann <anders@fugmann.net>
LicenseAPACHE-2.0
Published
Homepagehttps://github.com/issuu/ocaml-protoc-plugin
Issue Trackerhttps://github.com/issuu/ocaml-protoc-plugin/issues
MaintainerIssuu
Dependencies
Source [http] https://github.com/issuu/ocaml-protoc-plugin/archive/refs/tags/4.4.0.tar.gz
md5=33eec898e6b8b31ec1f8aed351a32b5d
sha512=3f7515c430bad3706dbe2fcfdbe0d5b33984dd6300adfc3cbbe912f033c3868eaa65d916eabac91195506f02f151cabb4f8173b732b020673ac7df04f9e48172
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.4.4.0/opam
Required by