this repo has no description
1opam-version: "2.0"
2synopsis:
3 "Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file"
4description: """\
5The plugin generates ocaml type definitions,
6serialization and deserialization functions from a protobuf file.
7The types generated aims to create ocaml idiomatic types;
8- messages are mapped into modules
9- oneof constructs are mapped to polymorphic variants
10- enums are mapped to adt's
11- map types are mapped to assoc lists
12- all integer types are mapped to int by default (exact mapping is also possible)
13- all floating point types are mapped to float.
14- packages are mapped to nested modules"""
15maintainer: "Issuu"
16authors: "Anders Fugmann <af@issuu.com>"
17license: "APACHE-2.0"
18homepage: "https://github.com/issuu/ocaml-protoc-plugin"
19doc: "https://issuu.github.io/ocaml-protoc-plugin/"
20bug-reports: "https://github.com/issuu/ocaml-protoc-plugin/issues"
21depends: [
22 "conf-protoc" {>= "1.0.0"}
23 "dune" {>= "2.0"}
24 "ocaml" {>= "4.06.0"}
25 "ppx_expect" {with-test & < "v0.17"}
26 "ppx_inline_test" {with-test}
27 "ppx_deriving" {with-test}
28]
29build: [
30 ["dune" "subst"] {dev}
31 ["dune" "build" "-p" name "-j" jobs]
32 ["dune" "runtest" "-p" name "-j" jobs] {with-test & arch != "arm32" & arch != "x86_32"}
33]
34dev-repo: "git+https://github.com/issuu/ocaml-protoc-plugin"
35url {
36 src:
37 "https://github.com/issuu/ocaml-protoc-plugin/releases/download/4.2.0/ocaml-protoc-plugin-4.2.0.tbz"
38 checksum: [
39 "md5=7837774e6637afdbd5e3b1066c01d3b1"
40 "sha512=3d96bbdf8a391b8e7903ca07d28507e7568b063521be84f62e9e0e30728ada4cae3553a9239254fb4f2bde480e6cfeb05ec4a2bab699c755a6890108b8f889e6"
41 ]
42}