opam-version: "2.0"
maintainer:   "anil@recoil.org"
authors:      ["Anil Madhavapeddy" "Thomas Leonard" "Thomas Gazagnaire" "Rudi Grinberg"]
homepage:     "https://github.com/mirage/ocaml-conduit"
dev-repo: "git+https://github.com/mirage/ocaml-conduit.git"
bug-reports:  "https://github.com/mirage/ocaml-conduit/issues"
tags:         "org:mirage"
license:      "ISC"

build: [
  ["./configure"]
  [make]
  [make "doc"] {with-doc}
]
install: [make "install"]
remove:  ["ocamlfind" "remove" "conduit"]
depends: [
  "ocaml" {>= "4.03.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
  "ppx_driver" {build & >= "v0.9.1" & < "v0.10.0"}
  "ppx_deriving"
  "ppx_optcomp" {>= "113.24.00" & < "v0.15"}
  "ppx_sexp_conv" {< "v0.15"}
  "sexplib" {< "v0.15"}
  "stringext"
  "uri" {< "2.0.0"}
  "result"
  "logs" {>= "0.5.0"}
  "ipaddr" {>= "2.5.0" & < "3.0.0"}
]
depopts: [
  "async"
  "lwt"
  "ssl"
  "async_ssl"
  "lwt_ssl"
  "mirage-dns"
  "vchan"
  "launchd"
  "tls"
  "mirage-types-lwt"
  "mirage-flow-lwt"
]
conflicts: [
  "lwt" {<"2.7.0"}
  "async_ssl" {<"112.24.00"}
  "async" {<"113.24.00"}
  "mirage-flow-lwt" {< "1.2.0"}
  "mirage-types-lwt" {<"3.0.0"}
  "dns" {<"0.19.0"}
  "dns" {>= "2.0.0"}
  "mirage-dns" {>= "4.0.0"}
  "tls" {<"0.4.0"}
  "vchan" {<"2.3.0"}
  "nocrypto" {<"0.4.0"}
]
synopsis: "Network connection library for TCP and SSL"
description: """
The `conduit` library takes care of establishing and listening for TCP and
SSL/TLS connections for the Lwt and Async libraries.

The reason this library exists is to provide a degree of abstraction
from the precise SSL library used, since there are a variety of ways to bind to
a library (e.g. the C FFI, or the Ctypes library), as well as well as which
library is used (either OpenSSL or a native OCaml TLS implementation).

If you are using the `Lwt_unix` version of the library, you can set two
environment variables to control the behaviour of the library:

- `CONDUIT_DEBUG=1` will output debug information to standard error.
- `CONDUIT_TLS=native` will force the use of the pure OCaml TLS library."""
flags: light-uninstall
url {
  src: "https://github.com/mirage/ocaml-conduit/archive/v0.15.4.tar.gz"
  checksum: "md5=48824ea34aeeb90e4eea97e14ab9a0a6"
}
