-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
41 lines (39 loc) · 1.47 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
opam-version: "2.0"
maintainer: "Issuu"
authors: "Anders Fugmann <af@issuu.com>"
license: "Apache-2.0"
homepage: "https://github.com/issuu/ocaml-protoc-plugin"
dev-repo: "git+https://github.com/issuu/ocaml-protoc-plugin"
bug-reports: "https://github.com/issuu/ocaml-protoc-plugin/issues"
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
"conf-protoc"
"dune" {>= "1.10"}
"ocaml" {>= "4.06.0" & < "5.0.0"}
"ppx_expect" {with-test & < "v0.17"}
"ppx_inline_test" {with-test}
"ppx_deriving" {with-test}
]
synopsis: "Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file"
description: """ 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
"""
url {
src: "https://github.com/issuu/ocaml-protoc-plugin/archive/1.0.0.tar.gz"
checksum: [
"md5=278461dfca05f428e54abddfdf229471"
"sha512=b54528f0079c3d38d746ba97e48530bc87edfa684bc814623c450ee65502c6d16b9ae304c6ea6e19ff0ca84c454601a367abd35b295abf5b727bc702ff792716"
]
}