|
| 1 | +opam-version: "2.0" |
| 2 | +maintainer: "Anders Fugmann" |
| 3 | +authors: "Anders Fugmann <anders@fugmann.net>" |
| 4 | +license: "APACHE-2.0" |
| 5 | +homepage: "https://github.com/andersfugmann/ocaml-protoc-plugin" |
| 6 | +dev-repo: "git+https://github.com/andersfugmann/ocaml-protoc-plugin" |
| 7 | +bug-reports: "https://github.com/andersfugmann/ocaml-protoc-plugin/issues" |
| 8 | +doc: "https://andersfugmann.github.io/ocaml-protoc-plugin/" |
| 9 | +build: [ |
| 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" & os != "win32"} |
| 13 | +] |
| 14 | + |
| 15 | +depends: [ |
| 16 | + "conf-protoc" {>= "1.0.0"} |
| 17 | + "conf-protoc-dev" {with-test} |
| 18 | + "conf-c++" {with-test} |
| 19 | + "dune" {>= "3.12"} |
| 20 | + "ocaml" {>= "4.08.0"} |
| 21 | + "ppx_expect" |
| 22 | + "ppx_inline_test" |
| 23 | + "ppx_deriving" {with-test} |
| 24 | + "bisect_ppx" {with-test} |
| 25 | + "odoc" {with-doc} |
| 26 | + "omd" {>= "2.0"} |
| 27 | + "conf-pkg-config" {build} |
| 28 | + "dune-configurator" {with-test} |
| 29 | + "yojson" {with-test} |
| 30 | + "base64" {>= "3.1.0"} |
| 31 | + "ptime" |
| 32 | +] |
| 33 | + |
| 34 | +x-ci-accept-failures: [ |
| 35 | + "opensuse-15.5" # Error during linking (exit code 1) |
| 36 | + "macos-homebrew" # C++ versions less than C++14 are not supported. |
| 37 | +] |
| 38 | + |
| 39 | +x-maintenance-intent: ["(latest)"] |
| 40 | + |
| 41 | +synopsis: "Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file" |
| 42 | + |
| 43 | +description: """ The plugin generates ocaml type definitions, |
| 44 | +serialization and deserialization functions from a protobuf file. |
| 45 | +The types generated aims to create ocaml idiomatic types; |
| 46 | +- messages are mapped into modules |
| 47 | +- oneof constructs are mapped to polymorphic variants |
| 48 | +- enums are mapped to adt's |
| 49 | +- map types are mapped to assoc lists |
| 50 | +- all integer types are mapped to int by default (exact mapping is also possible) |
| 51 | +- all floating point types are mapped to float. |
| 52 | +- packages are mapped to nested modules |
| 53 | + |
| 54 | +The package aims to be a 100% compliant protobuf implementation. |
| 55 | +It also includes serializing to and from json based on |
| 56 | +protobuf json specification |
| 57 | +""" |
| 58 | +url { |
| 59 | + src: |
| 60 | + "https://github.com/andersfugmann/ocaml-protoc-plugin/releases/download/6.2.0/ocaml-protoc-plugin-6.2.0.tbz" |
| 61 | + checksum: [ |
| 62 | + "sha256=46a87788d39e09d5e824fcab29718f9625787f5b0ffb8fad3bb412567c01ecf6" |
| 63 | + "sha512=bffcbe124320c028cf30b7ff7a69aa214d29eeae9fea0ace4739bcc040fde3d6896a01a075fb6b66832a061d4f3ab185ddbb03235781ddea4a618f9e29626586" |
| 64 | + ] |
| 65 | +} |
| 66 | +x-commit-hash: "99fa5b34820490c68355d193bc417052eb8b6929" |
0 commit comments