From dd4f573d1349d75d571d83d38c3fcc8b52dee4ac Mon Sep 17 00:00:00 2001 From: Brendan Long Date: Thu, 6 May 2021 13:41:31 -0600 Subject: [PATCH] Make async_ssl required --- dune-project | 11 +++++------ pgx_async.opam | 2 +- pgx_lwt_unix.opam | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dune-project b/dune-project index c5fda85..5b18faf 100644 --- a/dune-project +++ b/dune-project @@ -21,7 +21,7 @@ (name pgx) (synopsis "Pure-OCaml PostgreSQL client library") (description - "PGX is a pure-OCaml PostgreSQL client library, supporting Async, LWT, or synchronous operations.") + "PGX is a pure-OCaml PostgreSQL client library, supporting Async, LWT, or synchronous operations.") (depends (alcotest (and @@ -52,9 +52,9 @@ (package (name pgx_unix) (synopsis - "PGX using the standard library's Unix module for IO (synchronous)") + "PGX using the standard library's Unix module for IO (synchronous)") (description - "PGX using the standard library's Unix module for IO (synchronous)") + "PGX using the standard library's Unix module for IO (synchronous)") (depends (alcotest (and @@ -82,6 +82,7 @@ (>= "v0.13.0")) (async_unix (>= "v0.13.0")) + async_ssl (base64 (and :with-test @@ -92,9 +93,7 @@ (pgx (= :version)) (pgx_value_core - (= :version))) - (depopts - async_ssl)) + (= :version)))) (package (name pgx_lwt) diff --git a/pgx_async.opam b/pgx_async.opam index 3c7e88d..b6a7eff 100644 --- a/pgx_async.opam +++ b/pgx_async.opam @@ -13,13 +13,13 @@ depends: [ "alcotest-async" {with-test & >= "1.0.0"} "async_kernel" {>= "v0.13.0"} "async_unix" {>= "v0.13.0"} + "async_ssl" "base64" {with-test & >= "3.0.0"} "conduit-async" "ocaml" {>= "4.08"} "pgx" {= version} "pgx_value_core" {= version} ] -depopts: ["async_ssl"] build: [ ["dune" "subst"] {pinned} [ diff --git a/pgx_lwt_unix.opam b/pgx_lwt_unix.opam index 9a8e7e0..3163469 100644 --- a/pgx_lwt_unix.opam +++ b/pgx_lwt_unix.opam @@ -12,7 +12,6 @@ depends: [ "dune" {>= "1.11"} "alcotest-lwt" {with-test & >= "1.0.0"} "base64" {with-test & >= "3.0.0"} - "lwt" "ocaml" {>= "4.08"} "pgx" {= version} "pgx_lwt" {= version}