Tools covers builds, package management, editors, documentation and JavaScript compilation.
W49.2025 · 1–7 Dec/ocaml/dune
Features
Dune 3.21: allows dune variables such as %{workspace_root} in (promote (into ...)) paths. Previously these were rejected with "Atom or quoted string expected." (#12832)
Dune (proposal): a new (files) stanza would let users exclude build artifacts from source-tree scanning, easing compiler development with Dune. (#12879)
Dune:dune init proj now adds (libraries <project>) to the generated test stanza so tests compile against the library by default. (#12791)
Compatibility and Releases
Dune pkg (proposal): unifies all caches under DUNE_CACHE_ROOT, changing the default location of git-repo, toolchain, and rev-store caches. Breaking for existing setups. (#12858)
Dune pkg: memoizing per-context values cuts dune build time from ~5.4 s to ~1.1 s on a representative project. (#12848)
Dune pkg:dune build @fmt now finds ocamlformat installed via dune tools install by checking the existing dev-tool lock directory. (#12847)
Dune pkg: packages built with the substitute action no longer rebuild after unrelated environment variable changes. (#12825)
Dune: non-ASCII characters in (lang dune ...) or (using ...) version strings now produce a precise single-caret error instead of a greedy or generic message. (#12844, #12869)