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" {>= "2.0.0"}
  "angstrom" {>= "0.14.0"}
  "fmt"
  "ke" {>= "0.4"}
  "bigstringaf" {>= "0.5.0"}
  "bigarray-compat"
  "bigarray-overlap" {>= "0.2.0"}
  "alcotest" {with-test}
]
url {
  src:
    "https://github.com/mirage/encore/releases/download/v0.5/encore-v0.5.tbz"
  checksum: [
    "sha256=36dd2175340a1e84e8efd8f7cdb000a47c04aee2e6e817eb81692612146dc096"
    "sha512=a5d85ddb0a2e39c0a522d6091500fba83d71ed2f48f64a396c966e329e517ead7f9104756c6864439b0833dfbe5ea31a222e995c96653ee82f719b099d8e7514"
  ]
}
