Features
Dune DUNE_ROOT: New environment variable sets the project root, equivalent to --root. Takes precedence over directory traversal; --root still overrides it. Merged in #12438.
Dune RPC formatting: dune fmt and dune rpc fmt now run while a dune build -w watch server is active. Merged in #12064.
Dune Melange runtime_deps: Public libraries can declare directory targets in melange.runtime_deps, supporting bundled asset directories. Merged in #12297.
Dune Docker images: A GitHub Action publishes a minimal Dune image to the GitHub container registry on each release. Merged in #12252.
js_of_ocaml Wasm: Merged reference unboxing eliminates redundant reference boxing in generated Wasm output. By vouillon. #1958.
Fixes
Merlin type recovery: Merged fix for structure-item-level type recovery; a missing error raise caused entire recursive definition blocks to be dropped. Closes #1953.
Dune pkg disabled: The (pkg disabled) option now actually disables package management features. Previously undocumented and non-functional; now documented. Merged in #12444.
Dune RPC exit code: dune build now returns a non-zero exit code when the RPC connection terminates unexpectedly. Merged in #12446.
opam update: Open PR loads only changed opam files during repository updates instead of rescanning the full tree. Reduces loading from ~10 s to ~0.01 s on Windows. #6614.
Compatibility and Releases
Dune 3.20.2: Release tracker closed 2025-09-11; changelog merged in #12441. Backports include fixes from #12325 and #12324.
Dune Windows packaging: Multiple issues document dune pkg failures on Windows: shell scripts cannot execute, menhir.exe not found, .exe extensions omitted. Tracked under #11161.
opam OCaml 5.5: PR adds build support for OCaml 5.5, queued behind the test-matrix update in #6684. #6670.