opam-version: "2.0"
maintainer:   "Romain Calascibetta <romain.calascibetta@gmail.com>"
authors:      "Romain Calascibetta <romain.calascibetta@gmail.com>"
homepage:     "https://github.com/dinosaure/encore"
bug-reports:  "https://github.com/dinosaure/encore/issues"
dev-repo: "git+https://github.com/dinosaure/encore.git"
doc:          "https://dinosaure.github.io/encore/"
license:      "MIT"

build: [
  ["jbuilder" "subst" "-p" name] {pinned}
  ["jbuilder" "build" "-p" name "-j" jobs]
  ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
  "ocaml" {>= "4.03.0"}
  "jbuilder" {>= "1.0+beta9"}
  "angstrom" {>= "0.9.0" & < "0.14.0"}
  "ocplib-endian"
  "fmt"
  "alcotest" {with-test}
]
synopsis: "Isomorphism between encoder & decoder"
description: """
Encore is a little library to provide an interface to generate an
[Angstrom](https://github.com/inhabitedtype/angstrom.git)'s decoder and a
internal encoder from a shared description. The goal is specifically for
[ocaml-git](https://github.com/mirage/ocaml-git.git) to ensure isomorphism when
we decode and encode a Git object - and keep the same hash/identifier."""
url {
  src:
    "https://github.com/dinosaure/encore/releases/download/v0.1/encore-0.1.tbz"
  checksum: "md5=79647f73f51e1681cd64790b62d13e59"
}
