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/refs/tags/4.5.0.tar.gz md5=c374c68c6c2552c2c25484c2edbc9f6a sha512=85f77afe95e56a90aabb037b4a96ddb903ee5d2732552838da3e22de6a4189bdd8c22a380e2489e99b85041a204c2cdda88568742cece012958f23c802b5c370 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ocaml-protoc-plugin/ocaml-protoc-plugin.4.5.0/opam |
Required by