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 "base" {< "v0.14"}
15 "conf-protoc"
16 "dune" {>= "1.10"}
17 "ocaml" {>= "4.07.0"}
18 "ocaml-protoc" {build}
19 "ocplib-endian"
20 "ppx_let" {< "v0.14"}
21 "ppx_deriving"
22 "ppx_expect" {< "v0.14"}
23 "ppx_inline_test" {< "v0.14"}
24]
25
26synopsis: "Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file"
27
28description: """ The plugin generates ocaml type definitions,
29serialization and deserialization functions from a protobuf file.
30The types generated aims to create ocaml idiomatic types;
31- messages are mapped into modules
32- oneof constructs are mapped to polymorphic variants
33- enums are mapped to adt's
34- map types are mapped to assoc lists
35- all integer types are mapped to int
36- all floating point types are mapped to float.
37- packages are mapped to nested modules
38"""
39url {
40 src: "https://github.com/issuu/ocaml-protoc-plugin/archive/0.9.tar.gz"
41 checksum: [
42 "md5=ba564a123f4db98745eb7ed250bf24bf"
43 "sha512=cdf115d133c638965ad12d7f0e0167dfb8437c5334c56e1000418f08be966c9edeebd95802e2c470e6cbc5085a52fa682222c2fe3478a18ee66ae087c79daebb"
44 ]
45}