Thicket thicket
ocaml
REPOS 1

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W21.2026 · 18–24 Mayocaml/dune

Features

  • Dune rev_store cache: enabled by default on 64-bit platforms, caching git ls-tree output in a versioned LMDB store under $DUNE_CACHE_ROOT/rev_store/. Benchmarks show 3–4× speedup on dune pkg lock for mid-size projects. #14494

  • Dune 3.24 Melange preprocess: new melange.preprocess and melange.preprocessor_deps fields on buildable stanzas, gated on (lang dune 3.24). Allows separate ppx/preprocessor configuration for Melange compilation. #14572

  • Dune 3.24 directory targets: promoted from experimental to stable. No behaviour change; the feature is now available without opt-in. #14579

  • Per-module library dependency filter: ongoing 9-layer PR reducing unnecessary recompilation by tracking per-module cross-library deps via ocamldep. Layers 2–3 merged; core BFS and filtered include flags still open. #14492

  • Dune action runners: open PR adding --action-runner and --sandbox-actions to run eligible actions in a bubblewrap-wrapped worker, protecting the shared cache from writes. Targeted for 3.24. #14240

Fixes

  • Dune profile name validation: profile names in (env ...) stanzas are now validated; invalid characters (e.g. * used in place of _) are rejected at parse time. #14657

  • Dune %{target} error message: the error for using %{target} in a rule without a (target ...) field now names the missing field instead of referencing "inferred rules." #14668

Compatibility and Releases

  • Dune 3.23.1: point release merged 2026-05-19, backporting fixes for OCaml < 4.14 support, dune build @doc with dune tools install odoc, and RPC forwarding errors. The OCaml lower bound is now 4.14 across all dune packages. #14442, #14611