From b57ccc5142efc4d8da1b2792f050767bfd43cc1a Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 12 Mar 2024 22:14:43 -0400 Subject: [PATCH] chore: add moonpool-io as a library --- dune-project | 17 ++++++++++++++--- moonpool-io.opam | 36 ++++++++++++++++++++++++++++++++++++ moonpool.opam | 3 --- 3 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 moonpool-io.opam diff --git a/dune-project b/dune-project index f42cdb49..ef3441eb 100644 --- a/dune-project +++ b/dune-project @@ -29,9 +29,6 @@ :with-test))) (depopts (trace (>= 0.6)) - (mtime (>= 2.0)) - (iostream (>= 0.2)) - (poll (>= 0.3)) thread-local-storage) (tags (thread pool domain futures fork-join))) @@ -47,4 +44,18 @@ base-unix (odoc :with-doc))) +(package + (name moonpool-io) + (synopsis "Event loop for moonpool based on Poll") + (allow_empty) ; on < 5.0 + (depends + (moonpool (= :version)) + (ocaml (>= 5.0)) + base-unix + (iostream (>= 0.2)) + (poll (>= 0.3)) + (odoc :with-doc)) + (depopts + (mtime (>= 2.0)))) + ; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project diff --git a/moonpool-io.opam b/moonpool-io.opam new file mode 100644 index 00000000..b5463528 --- /dev/null +++ b/moonpool-io.opam @@ -0,0 +1,36 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +version: "0.5.1" +synopsis: "Event loop for moonpool based on Poll" +maintainer: ["Simon Cruanes"] +authors: ["Simon Cruanes"] +license: "MIT" +homepage: "https://github.com/c-cube/moonpool" +bug-reports: "https://github.com/c-cube/moonpool/issues" +depends: [ + "dune" {>= "3.0"} + "moonpool" {= version} + "ocaml" {>= "5.0"} + "base-unix" + "iostream" {>= "0.2"} + "poll" {>= "0.3"} + "odoc" {with-doc} +] +depopts: [ + "mtime" {>= "2.0"} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/c-cube/moonpool.git" diff --git a/moonpool.opam b/moonpool.opam index 33abc241..c8afba80 100644 --- a/moonpool.opam +++ b/moonpool.opam @@ -20,9 +20,6 @@ depends: [ ] depopts: [ "trace" {>= "0.6"} - "mtime" {>= "2.0"} - "iostream" {>= "0.2"} - "poll" {>= "0.3"} "thread-local-storage" ] build: [