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 <af@issuu.com>
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/releases/download/4.1.0/ocaml-protoc-plugin-4.1.0.tbz
sha256=2e02e070c3bc18c5b2c804012d6db8c9451fb4b23a7a4256aab3e9fe96aaf862
sha512=4fe3a392f897a531eebf22c15a55623512ac0d9795da68188c367ab1f216d6b936ad22064be7179d04f204a22324ede772c7c4678a3fe3b2ca760aecb5e87999
StatisticsNot installed in the last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.4.1.0/opam
No package is dependent