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