Dune 3.22.0~alpha1 releases with DUNE_JOBS, dune trace cat, and a relocated build cache, while merged Dune 3.23 sandboxing isolates user-defined rules. A merged js_of_ocaml fix caches shape computation, cutting one cyclic-type compile from over seven hours to roughly 200 ms.
Features
-
Dune 3.22.0~alpha1: Released 2026-03-11. Adds
DUNE_JOBS,dune trace cat,@doc-markdownalias,dune runtestwith per-test args,shellfield in cram stanzas, anddune-action-tracelibrary. Release notes. -
Dune 3.23 sandboxing: Merged #13805 enables sandboxing for user-defined rules at
dune lang 3.23. Projects ondune lang 3.22or earlier are unaffected. -
OxCaml
[@unpacked]: Merged. Flattens unboxed product arguments into separate C parameters on native; bytecode stubs receive the product as a single boxed value. Nested products are recursively flattened. PR -
OxCaml
-O4: Merged. Enables-O3plus-flambda2-reaper; adds the[@@ocaml.flambda_o4]attribute for per-module use. PR -
js_of_ocaml
--build-config: Merged.wasm_of_ocaml --build-configprints compiler settings as key=value pairs;--apply-build-configoverrides them, taking precedence over other flags. PR -
js_of_ocaml shape computation: Merged. Adds caching and sharing to avoid exponential blowups for cyclic types. One user reported a
.cma.jscompile dropping from over 7 hours to ~200 ms. PR
Fixes
-
OCaml 5.5: Fixes a regression where a local
openinside a pipe expression blocked optional-argument elimination, causing spurious type errors. Cherry-picked to the 5.5 branch. #14638 -
Dune
selectregression: Merged #13804 restoresdune lang 1.0semantics for(select ..)on non-OCaml files, fixing a build failure in packages like mccs. -
Dune build-dir lock: Merged #13767 stops
dune buildfrom hanging indefinitely when the build directory is locked by a dead process. -
odoc: Fixes a crash in
odoc compilewhen substituting the same type name at different arities across nestedinclude … withsignatures. #1400
Compatibility and Releases
-
Dune 3.22.0~alpha1 cache path: The build cache moves to
$DUNE_CACHE_ROOT/db. Users can prevent invalidation by moving existing contents into adb/subdirectory. Release notes -
OCaml Marshal (CVE-2026-28364): Open PR targeting the 4.05 branch adds bounds checking in
Marshal.from_*to prevent buffer over-reads on crafted or truncated input. #14615