Thicket thicket
ocaml
REPOS 27

W11.2026 · 9–15 MarAll

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-markdown alias, dune runtest with per-test args, shell field in cram stanzas, and dune-action-trace library. Release notes.

  • Dune 3.23 sandboxing: Merged #13805 enables sandboxing for user-defined rules at dune lang 3.23. Projects on dune lang 3.22 or 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 -O3 plus -flambda2-reaper; adds the [@@ocaml.flambda_o4] attribute for per-module use. PR

  • js_of_ocaml --build-config: Merged. wasm_of_ocaml --build-config prints compiler settings as key=value pairs; --apply-build-config overrides 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.js compile dropping from over 7 hours to ~200 ms. PR

Fixes

  • OCaml 5.5: Fixes a regression where a local open inside a pipe expression blocked optional-argument elimination, causing spurious type errors. Cherry-picked to the 5.5 branch. #14638

  • Dune select regression: Merged #13804 restores dune lang 1.0 semantics for (select ..) on non-OCaml files, fixing a build failure in packages like mccs.

  • Dune build-dir lock: Merged #13767 stops dune build from hanging indefinitely when the build directory is locked by a dead process.

  • odoc: Fixes a crash in odoc compile when substituting the same type name at different arities across nested include … with signatures. #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 a db/ 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