opam-version: "2.0"
maintainer:   "Romain Calascibetta <romain.calascibetta@gmail.com>"
authors:      "Romain Calascibetta <romain.calascibetta@gmail.com>"
homepage:     "https://github.com/mirage/encore"
bug-reports:  "https://github.com/mirage/encore/issues"
dev-repo:     "git+https://github.com/mirage/encore.git"
doc:          "https://mirage.github.io/encore/"
license:      "MIT"
synopsis:     "Library to generate encoder/decoder which ensure isomorphism"
description: """
Encore is a little library to provide an interface to generate an angstrom decoder and
an internal encoder from a shared description. The goal is to ensure a dual isomorphism
between them.
"""

build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name "-j" jobs] {with-test}
]

depends: [
  "ocaml" {>= "4.03.0"}
  "dune" {>= "1.1"}
  "angstrom" {>= "0.10.0" & < "0.14.0"}
  "fmt"
  "ke" {>= "0.3"}
  "bigstringaf" {>= "0.5.0"}
  "bigarray-compat"
  "alcotest" {with-test}
]
url {
  src:
    "https://github.com/mirage/encore/releases/download/v0.4/encore-v0.4.tbz"
  checksum: [
    "sha256=a100f9e46000aa1fc618bf3eb47d56775afabe0b1b17fc10f1b64f9ad3bf76e2"
    "sha512=28d47feac863c0add0187d8e8db87d585522ef53597969f8c2d9ef2f8ca466c67b0876613bacf400a14efe223dd24f91ce8816f55fcd2cd05a56efc2cbd1b6cf"
  ]
}
