Thicket thicket
ocaml
REPOS 9

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

W32.2026 · 3–9 Augocaml/dune

Features

  • dune describe workspace and dune describe external-lib-deps now report public names for executables, matching library behaviour. A new --split-public-names flag places private names in name(s) and public names in a separate public_name(s) field. Merged in #15582; fixes #15497.

  • dune shell TARGET opens an interactive session at a prepared rule action boundary, exposing run, show_action, and show_command for debugging individual build steps. Preserves sandbox, environment, and locks. Open PR #15597; closes #3961.

  • Allocation profiling gains the DUNE_TRACE_ALLOC environment variable (rate, stack, top fields) and two new rankings per heap: by_site (youngest frame) and by_frame (all frames in stack). Frames fall back to the nearest symbolized caller. Merged in #15699, #15703, #15710.

Performance

  • Merged null-build improvements: major-heap space overhead raised to 500 (~13% @install, ~11% @check, #15730); batch builds skip Memo dependency storage (~10% @check/@install/@runtest, #15705); command-argument action builders flattened (~6% no-op @check, #15697); manual digest writes buffered in 4 KB (~2.3%, #15731).

Fixes

  • Menhir type inference (ocamlc -i) fails with Unbound module "Stdlib" on macOS when a relocatable compiler is selected via dune pkg lock. The fix declares the compiler stdlib directory as a hidden sandbox dependency. Open PR #15679; fixes #15642.

  • Null builds with %{bin:...} or (package ...) dependencies no longer invalidate and rebuild the .binaries/.packages install layouts, eliminating spurious workspace- and shared-cache misses. Merged in #15678.

  • JSOO archive directories are now preserved for interface-only libraries, stopping repeated rebuilds. Merged in #15427.

Compatibility and Releases

  • Dune 3.24.2 released 2026-08-03. Backports: implicit unix dependency for MDX ≥ 2.6 test executables (#15592); RPC registry rescan on directory mtime change (#15634). See release notes.

  • The (warnings (duplicate_deps ..)) field requires dune >= 3.18 but was introduced in 3.22, producing overly permissive opam bounds. Open PR #15696 corrects the bound.