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
Author | Anders Fugmann <anders@fugmann.net> |
---|---|
License | APACHE-2.0 |
Published | |
Homepage | https://github.com/issuu/ocaml-protoc-plugin |
Issue Tracker | https://github.com/issuu/ocaml-protoc-plugin/issues |
Maintainer | Issuu |
Dependencies |
|
Source [http] | https://github.com/issuu/ocaml-protoc-plugin/archive/4.3.1.tar.gz md5=a92c397b248e9128a0734f2d9c87b19e sha512=7d143cfb3392500ee779d5bc0760b3e90055c090374e5449bc924cc30e8899f8c73c7d1f3c05e67cf99bb747f0c11ba21fbdf8ed637bcc3bc792a62c62dacec5 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.4.3.1/opam |
Required by
- caisar>=0.2.1
- caisar-onnx