prepare for 0.10
Some checks are pending
github pages / Deploy doc (push) Waiting to run
Build and Test / build (push) Waiting to run
Build and Test / build-compat (push) Waiting to run
Build and Test / format (push) Waiting to run

This commit is contained in:
Simon Cruanes 2025-11-13 20:24:53 -05:00
parent 58a0f891f7
commit 4de33f0121
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
6 changed files with 65 additions and 27 deletions

View file

@ -1,4 +1,16 @@
# 0.10
- breaking: remove `around_task` from schedulers
- breaking: remove `moonpool.fib` entirely. Please use `picos_std.structured`
if you really need structured concurrency.
- remove deprecated moonpool-io and moonpool.sync
- feat core: add `Main`, salvaged from moonpool.fib
- block signals in background threads
- refactor `chan`; fix bug in `Chan.try_push`
- fix: make `Moonpool_lwt.fut_of_lwt` idempotent
# 0.9 # 0.9
- breaking: require OCaml 5 - breaking: require OCaml 5

View file

@ -1,13 +1,20 @@
(lang dune 3.0) (lang dune 3.0)
(using mdx 0.2) (using mdx 0.2)
(name moonpool) (name moonpool)
(version 0.9)
(version 0.10)
(generate_opam_files true) (generate_opam_files true)
(source (source
(github c-cube/moonpool)) (github c-cube/moonpool))
(authors "Simon Cruanes") (authors "Simon Cruanes")
(maintainers "Simon Cruanes") (maintainers "Simon Cruanes")
(license MIT) (license MIT)
;(documentation https://url/to/documentation) ;(documentation https://url/to/documentation)
@ -16,41 +23,60 @@
(name moonpool) (name moonpool)
(synopsis "Pools of threads supported by a pool of domains") (synopsis "Pools of threads supported by a pool of domains")
(depends (depends
(ocaml (>= 5.0)) (ocaml
(>= 5.0))
dune dune
(either (>= 1.0)) (either
(>= 1.0))
(trace :with-test) (trace :with-test)
(trace-tef :with-test) (trace-tef :with-test)
(qcheck-core (and :with-test (>= 0.19))) (qcheck-core
(thread-local-storage (and (>= 0.2) (< 0.3))) (and
:with-test
(>= 0.19)))
(thread-local-storage
(and
(>= 0.2)
(< 0.3)))
(odoc :with-doc) (odoc :with-doc)
(hmap :with-test) (hmap :with-test)
(picos (and (>= 0.5) (< 0.7))) (picos
(picos_std (and (>= 0.5) (< 0.7))) (and
(>= 0.5)
(< 0.7)))
(picos_std
(and
(>= 0.5)
(< 0.7)))
(mdx (mdx
(and (and
(>= 1.9.0) (>= 1.9.0)
:with-test))) :with-test)))
(depopts (depopts
hmap hmap
(trace (>= 0.6))) (trace
(>= 0.6)))
(tags (tags
(thread pool domain futures fork-join))) (thread pool domain futures fork-join)))
(package (package
(name moonpool-lwt) (name moonpool-lwt)
(synopsis "Event loop for moonpool based on Lwt-engine (experimental)") (synopsis "Event loop for moonpool based on Lwt-engine (experimental)")
(allow_empty) ; on < 5.0 (allow_empty) ; on < 5.0
(depends (depends
(moonpool (= :version)) (moonpool
(ocaml (>= 5.0)) (= :version))
(qcheck-core (and :with-test (>= 0.19))) (ocaml
(hmap :with-test) (>= 5.0))
lwt (qcheck-core
base-unix (and
(trace :with-test) :with-test
(trace-tef :with-test) (>= 0.19)))
(odoc :with-doc))) (hmap :with-test)
lwt
base-unix
(trace :with-test)
(trace-tef :with-test)
(odoc :with-doc)))
; 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

View file

@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead # This file is generated by dune, edit dune-project instead
opam-version: "2.0" opam-version: "2.0"
version: "0.9" version: "0.10"
synopsis: "Event loop for moonpool based on Lwt-engine (experimental)" synopsis: "Event loop for moonpool based on Lwt-engine (experimental)"
maintainer: ["Simon Cruanes"] maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]

View file

@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead # This file is generated by dune, edit dune-project instead
opam-version: "2.0" opam-version: "2.0"
version: "0.9" version: "0.10"
synopsis: "Pools of threads supported by a pool of domains" synopsis: "Pools of threads supported by a pool of domains"
maintainer: ["Simon Cruanes"] maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]

View file

@ -267,7 +267,7 @@ val await : 'a t -> 'a
val yield : unit -> unit val yield : unit -> unit
(** Like {!Moonpool.yield}. (** Like {!Moonpool.yield}.
@since NEXT_RELEASE *) @since 0.10 *)
(** {2 Blocking} *) (** {2 Blocking} *)

View file

@ -18,7 +18,7 @@
This module was migrated from the late [Moonpool_fib]. This module was migrated from the late [Moonpool_fib].
@since NEXT_RELEASE *) @since 0.10 *)
val main : (Runner.t -> 'a) -> 'a val main : (Runner.t -> 'a) -> 'a
(** [main f] runs [f()] in a scope that handles effects, including (** [main f] runs [f()] in a scope that handles effects, including