opam-version: "2.0"

synopsis: "Internal: shared http/af stack for Dream (server) and Hyper (client)"
description: "This package does not have a stable API."

license: "MIT"
homepage: "https://github.com/aantron/dream"
doc: "https://aantron.github.io/dream"
bug-reports: "https://github.com/aantron/dream/issues"
dev-repo: "git+https://github.com/aantron/dream.git"

author: "Anton Bachin <antonbachin@yahoo.com>"
maintainer: "Anton Bachin <antonbachin@yahoo.com>"

depends: [
  "dream-pure"
  "dune" {>= "2.7.0"}  # --instrument-with.
  "lwt"
  "lwt_ppx" {>= "1.2.2"}
  "lwt_ssl"
  "ocaml" {>= "4.08.0" & < "5.3"}
  "ssl" {>= "0.5.8"}  # Ssl.get_negotiated_alpn_protocol.

  # Currently vendored.
  # "gluten"
  # "gluten-lwt-unix"
  # "httpaf"
  # "httpaf-lwt-unix"
  # "h2"
  # "h2-lwt-unix"
  # "hpack"
  # "websocketaf"

  # Dependencies of vendored packages.
  "angstrom" {>= "0.14.0"}
  "base64" {>= "3.0.0"}
  "bigstringaf" {>= "0.5.0"}  # h2.
  "digestif" {>= "0.7.2"}  # websocket/af, sha1, default implementation.
  "faraday" {>= "0.6.1"}
  "faraday-lwt-unix"
  "lwt_ssl" {>= "1.2.0"}  # Gluten.
  "psq"  # h2.
]

build: [
  ["dune" "build" "-p" name "-j" jobs]
]

url {
  src: "https://github.com/aantron/dream/releases/download/1.0.0-alpha6/dream-1.0.0-alpha6.tar.gz"
  checksum: "sha256=8d3b6344c0e175aca628b3d5bb8ee58265e8c1074fc2d40d63f136fef83daf90"
}
