opam-version: "2.0"
maintainer: "simon.cruanes@inria.fr"
homepage: "https://github.com/c-cube/cconv"
license: "BSD-2-Clause"
build: [
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--prefix"
    prefix
    "--%{bencode:enable}%-bencode"
    "--%{yojson:enable}%-yojson"
    "--%{sexplib:enable}%-sexp"
  ]
  [make "all"]
]
tags: ["conversion" "gadt" "serialization"]
remove: [["ocamlfind" "remove" "cconv"]]
depends: [
  "ocaml" {>= "4.00.0" & < "4.06.0"}
  "ocamlfind"
  "ocamlbuild" {build}
]
depopts: [
  "bencode"
  "sexplib"
  "yojson"
]
conflicts: [
  "bencode" {>= "2.0"}
]
dev-repo: "git://github.com/c-cube/cconv"
install: [make "install"]
synopsis: "Combinators for Type Conversion in OCaml."
description: """
CConv provides type-safe combinators for describing how to read/build OCaml
values of a given type. Those combinators can be used for serializing and
deserializing the values into several formats. The library ships with
conversion to Json (yojson), S-expressions (sexplib) and B-encode."""
flags: light-uninstall
url {
  src: "https://github.com/c-cube/cconv/archive/0.1.tar.gz"
  checksum: "md5=1ec069ac54f4ec4fd4cd3501039b0b69"
}
