Features
-
Dune 3.25.0 released (2026-11-12). Key breaking changes: actions no longer see the shared install staging area on
PATH/OCAMLPATH; generated files are now read-only;:is rejected in context names. (release) -
RPC-backed rule plugins (merged 2026-11-13, requires
(lang dune 3.26)+(using plugin 0.1)). Projects define custom stanza forms via a small OCaml executable; Dune builds and invokes the plugin automatically. The existing site-plugin stanza is renamed to(dune_site.plugin ...). (#16760) -
dune tools envnow adds all dependency executables toPATH(merged 2026-11-12). A singleeval $(dune tools env)exposes every installed tool binary. Follow-up work proposes sanitising build-tree entries from rulePATHto preserve hermeticity. (#16901, #17004) -
GC defaults for compiler and Melange commands (merged 2026-11-13 / 2026-11-16). Dune-generated
ocamlc/ocamldepinvocations default tos=2Mand, on OCaml ≥ 5.5, a 128 MiB-equivalentXsmall_heap_limit. ExplicitOCAMLRUNPARAMoverrides are preserved. Measured 7–12 % wall-time reduction on release-profile builds. (#16914, #17022)
Fixes
-
Private CMI changes now rebuild consumers (merged 2026-11-10). Editing a module listed in
(private_modules ...)previously left consumers stale, causing "inconsistent assumptions over interface" errors until_buildwas deleted. (#16939, fixes #16071) -
Eager watch mode no longer reports diagnostics twice (merged 2026-11-10).
dune buildover RPC with an eager watch server printed each error once per goal; errors are now deduplicated across parallel goals. (#16900, fixes #15609) -
Workspace cache survives terminal hangup (merged 2026-11-16). SIGHUP is routed through the normal scheduler shutdown path, so the workspace database is persisted and the next build reuses completed rules. (#17064)
Compatibility and Releases
-
Dune 3.25.1 point release in progress (tracker opened 2026-11-14). Three regressions are being backported: dune-site path mismatch (#17031), parser-generator dialect collision (#17030), and Melange
.cmjvisibility withprivate_modules(#17020). (#17033, #17034) -
Proposal: remove user-facing sandbox types (opened 2026-11-10).
--sandbox copywill be removed and the(sandbox ...)rule field deprecated, as per-sandbox-type rules are non-portable and prevent transparent implementation improvements. (#16987)