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/archive/1.0.0.tar.gz
md5=278461dfca05f428e54abddfdf229471
sha512=b54528f0079c3d38d746ba97e48530bc87edfa684bc814623c450ee65502c6d16b9ae304c6ea6e19ff0ca84c454601a367abd35b295abf5b727bc702ff792716
StatisticsInstalled 23 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.1.0.0/opam
No package is dependent