ocaml-protoc-pluginversion Documentation on ocaml.org
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 |
| Documentation | https://andersfugmann.github.io/ocaml-protoc-plugin/ |
| Maintainer | Anders Fugmann |
| Dependencies |
|
| Source [http] | https://github.com/andersfugmann/ocaml-protoc-plugin/releases/download/6.3.0/ocaml-protoc-plugin-6.3.0.tbz sha256=0c3fdc2b6d46981f9f32477e3e1227dbee1bdb2c6a172f85d30e855c927e6334 sha512=91cf321757377b7f743a6f86aa3e039643558fa46a78d4fc25fc32f829cb33fe43d0766ec8f9606c6e8f1c18886c04bb7d489e6e3f2807e5a6e4136c2053ecdb |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.6.3.0/opam |
Required by


