Features
Dune (dirs) stanzas: Multiple (dirs ..) stanzas in a single dune file are now supported under (lang dune 3.23), taking the union of specified directories. Fixes #6249. (#13734)
Dune per-module library deps: Open PR proposes filtering inter-library dependencies per module using ocamldep output, eliminating unnecessary recompilation when a library changes. Supersedes the earlier #14021 approach. (#14116)
Dune dune rules --deps: New --deps flag prints only the dependencies of a given rule, aiding incremental-build debugging. Merged 2026-04-07. (#14071)
Dune dune init start-file: New subcommand generates the recommended start file for driving dune build -w in watch mode. Merged 2026-04-08. (#14083)
Dune Rocq extracted_files: New field in the rocq.extraction stanza declares non-OCaml extraction outputs (e.g. .hs files), preventing them from being wiped on rebuild. Merged 2026-04-10. (#13997)
Fixes
Dune @ocaml-index: The @ocaml-index alias is now generated only for merlin-enabled contexts, fixing build errors in alternative contexts where libraries are hidden by enabled_if. Merged 2026-04-11. (#14137)
Dune root_module: Entry modules are now deduplicated before writing root.ml-gen, fixing "Multiple definition of the module name" errors when findlib sub-packages share a directory (e.g. logs.lwt). Merged 2026-04-11. (#14135)
Compatibility and Releases
Dune 3.22.2: Patch release reverting the --diff-command behaviour change from 3.22.0; non-existent files are again passed to the command rather than replaced with /dev/null. Released 2026-04-10. (#14098, #14112)