chore: add moonpool-io as a library

This commit is contained in:
Simon Cruanes 2024-03-12 22:14:43 -04:00
parent 532ec36579
commit b57ccc5142
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
3 changed files with 50 additions and 6 deletions

View file

@ -29,9 +29,6 @@
:with-test))) :with-test)))
(depopts (depopts
(trace (>= 0.6)) (trace (>= 0.6))
(mtime (>= 2.0))
(iostream (>= 0.2))
(poll (>= 0.3))
thread-local-storage) thread-local-storage)
(tags (tags
(thread pool domain futures fork-join))) (thread pool domain futures fork-join)))
@ -47,4 +44,18 @@
base-unix base-unix
(odoc :with-doc))) (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 ; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

36
moonpool-io.opam Normal file
View file

@ -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"

View file

@ -20,9 +20,6 @@ depends: [
] ]
depopts: [ depopts: [
"trace" {>= "0.6"} "trace" {>= "0.6"}
"mtime" {>= "2.0"}
"iostream" {>= "0.2"}
"poll" {>= "0.3"}
"thread-local-storage" "thread-local-storage"
] ]
build: [ build: [