Dune 3.22.0~alpha0 releases with dune trace cat, default test sandboxing, and a breaking cache-path move to $DUNE_CACHE_ROOT/db. OCaml stdlib merges Fun.todo as a typed placeholder, and a Dune fix restores the previously non-functional shared build cache on Windows.
Features
OCaml stdlib: Merged Fun.todo raises a Todo exception with call-site location, providing a typed placeholder for unimplemented code. #14525
Merlin: Merged refactoring-extract-region command extracts an expression into a fresh let binding via the Merlin protocol. #1948
ocaml-lsp: Merged textDocument/rangeFormatting invokes ocamlformat on the selected range while preserving surrounding indentation. #1591
OxCaml: Merged static-computation framework inserts a fracturing pass between transl and simplif, splitting lambda into static and dynamic parts. Open follow-ups add the first static evaluator. #5430
Compatibility
opentelemetry 0.13: Merged with a breaking change: vendored opentelemetry.ambient-context is removed; users must depend on ambient-context 0.2 and call Ambient_context.set_current_storage directly. #29501
OCaml 5.5 compatibility: Merged opam-repository changes mark lwt < 6.1.1, ocp-index < 1.4.0, opam-client < 2.5.0~beta1, and rocq-runtime/coq-core 8.19.2–9.1.0 as incompatible. #29510
js_of_ocaml OCaml 5.5: Open PR adds initial compiler and runtime support; the ocaml55 branch is available for testing. wasm_of_ocaml remains unsupported. #2195
Fixes
OCaml warning 16: Merged fix delays the unerasable-optional-argument check until after type inference, correcting false negatives in nested let bindings. #14512
Dune cache (Windows): Merged fix enables hard links on NTFS/ReFS and clears read-only attributes before rename during deduplication. The shared cache was non-functional on Windows without this. #13713
OxCaml unboxed arrays: Merged change removes language-level array block-index syntax, replacing it with explicit %unsafe_array_idx primitives. Get/set operations are now safe. #5556
OCaml Marshal (CVE-2026-28364): Open PR adds bounds checking to Marshal.from_* to prevent buffer over-reads on crafted or truncated input. #14615
Releases
Dune 3.22.0~alpha0: Released with dune trace cat, default test sandboxing, dune runtest for individual files, and @doc-markdown for odoc. Build cache path moves to $DUNE_CACHE_ROOT/db (breaking). Release notes