opam-version: "2.0"
maintainer: "Antonio Monteiro <anmonteiro@gmail.com>"
authors: [ "Antonio Monteiro <anmonteiro@gmail.com>" ]
license: "BSD-3-Clause"
homepage: "https://github.com/anmonteiro/ocaml-h2"
bug-reports: "https://github.com/anmonteiro/ocaml-h2/issues"
dev-repo: "git+https://github.com/anmonteiro/ocaml-h2.git"
doc: "https://anmonteiro.github.io/ocaml-h2/"
build: [
  ["dune" "build" "-p" name "-j" jobs]
]
depends: [
  "ocaml" {>= "4.04"}
  "dune"
  "alcotest" {with-test}
  "yojson" {with-test}
  "hex" {with-test}
  "bigstringaf" {>= "0.5.0"}
  "angstrom" {>= "0.11.2"}
  "faraday" {>= "0.5.0"}
  "psq"
  "hpack"
  "httpaf"
]
synopsis:
  "A high-performance, memory-efficient, and scalable HTTP/2 library for for OCaml"
description: """
h2 is an implementation of the HTTP/2 specification entirely in OCaml. It
is based on the concepts in http/af, and therefore uses the Angstrom and
Faraday libraries to implement the parsing and serialization layers of the
HTTP/2 standard as a state machine that is agnostic to the underlying I/O
specifics. It also preserves the same API as http/af wherever possible.
"""
url {
  src:
    "https://github.com/anmonteiro/ocaml-h2/releases/download/0.3.0/h2-0.3.0.tbz"
  checksum: [
    "sha256=abe11e14b22c44dc8274adb88ba96e7b6907cd0e71318cffedac9cc6c82cf03e"
    "sha512=d9acd46835da4c284a93d21dd9ffb6fb380ed9ea9e400d6fd720fef17a5b6c66a45c4c487468224172de1d40d17dc79aa9e8efb49eb1ff1a711e3e081caf0293"
  ]
}
