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.07.0"}
  "dune"  {>= "2.0.0"}
  "angstrom" {>= "0.14.0"}
  "fmt"
  "bigstringaf" {>= "0.5.0"}
  "alcotest" {with-test}
]

x-commit-hash: "7bc75e21a4b536a64cf5b11395bb9e561d167f28"
url {
  src:
    "https://github.com/mirage/encore/releases/download/v0.7/encore-v0.7.tbz"
  checksum: [
    "sha256=d09e67dcd1d8d6ff2428ed3481a7b4bebffb7c71b33e057cf9635659e4849533"
    "sha512=4def3b039820d321bc7d2f2fb0d0fc76f016158d071c1282091b6c45ccc332c7069bfca88ebcb53893f11c315ea713e6fc614ee6964e1082e07e31f4fd974030"
  ]
}
