(lang dune 3.0)
(name gitlab)
(version 0.1.8)
(generate_opam_files true)
(formatting (enabled_for ocaml))
(using mdx 0.1)

(license BSD-3-clause)
(maintainers "Tim McGilchrist <timmcgil@gmail.com>")
(authors "Tim McGilchrist" )
(source (github tmcgilchrist/ocaml-gitlab))
(documentation "https://tmcgilchrist.github.io/ocaml-gitlab/")

(package
 (name gitlab)
 (depends
  (ocaml (>= 4.08.0))
  (uri (>= 1.9.0))
  (cohttp-lwt (>= 4.0))
  (atdgen (>= 2.8.0))
  (yojson (>= 1.7.0))
  (ISO8601 (>= 0.2.6))
  stringext)
 (synopsis "GitLab APIv4 OCaml library")
 (description "This library provides an OCaml interface to the
[GitLab APIv4](https://docs.gitlab.com/ee/api/) (JSON).

It is compatible with [MirageOS](https://mirage.io) and also compiles to pure
JavaScript via [js_of_ocaml](http://ocsigen.org/js_of_ocaml)."))

(package
 (name gitlab-unix)
 (depends
  (ocaml (>= 4.08.0))
  (gitlab (= :version))
  (cmdliner (>= 1.1.0))
  (cohttp (>= 4.0))
  (cohttp-lwt-unix (>= 4.0))
  (tls (>= 0.11.0))
  (lwt (>= 2.4.4))
  stringext
  base-unix
  (alcotest :with-test))
 (synopsis "GitLab APIv4 OCaml library")
 (description "This library provides an OCaml interface to the
[Gitlab APIv4](https://docs.gitlab.com/ee/api/) (JSON).
This package installs the Unix (Lwt) version."))

(package
 (name gitlab-jsoo)
 (depends
  (ocaml (>= 4.08.0))
  (gitlab (= :version))
  (cohttp (>= 4.0))
  (cohttp-lwt-jsoo (>= 4.0))
  (js_of_ocaml-lwt (>= 3.4.0)))
 (synopsis "Gitlab APIv4 OCaml library")
 (description "This library provides an OCaml interface to the
[Gitlab APIv4](https://docs.gitlab.com/ee/api/) (JSON).
This library installs the JavaScript version, which uses [js_of_ocaml](http://ocsigen.org/js_of_ocaml)."))

(package
 (name lab)
 (depends
  (ocaml (>= 4.08.0))
  (cmdliner (>= 1.1.0))
  (gitlab-unix (= :version))
  (cohttp-lwt-unix (>= 4.0))
  (otoml (>= 0.9.0))
  (fmt (>= 0.9.0))
  (mdx (and (>= 2.1) :with-test)))
 (synopsis "GitLab cli")
 (description "Experimental GitLab cli in the style of GitHub's gh and hub commands."))

(using menhir 2.1)
