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