Tools covers builds, package management, editors, documentation and JavaScript compilation.
W43.2025 · 20–26 Oct/ocaml/dune
Features
Dune (dir ..) field: New (dir ..) field in dune-project designates a single directory per package. Stanzas inside that directory are restricted to the package; stanzas outside cannot attach to it. Merged in #12614, fixes #3255.
OxCaml parameterized libraries: Open #12561 adds instantiation of parameterized libraries via (my_lib arg1 arg2 :as new_name) in library and executable dependencies. Requires OxCaml compiler support; not yet merged.
Dune pkg lock output: Open #12620 changes dune pkg lock output for portable lockdirs to group packages by platform, separating common dependencies from platform-specific ones. Addresses confusion in #11868.
Compatibility and Releases
Dune 3.21.0: Release tracker #12619 opened 2025-10-23; cutting planned for October 27. #12608 bumps the dune language version in preparation.
Fixes
Dune self-pinning: Merged #12583 makes dune pkg lock pin the running dune version, preventing selection of packages requiring a newer dune language version. Fixes #12381.
dune init absolute paths: Merged #12601 fixes a crash when dune init project is given an absolute directory path. Fixes #7806.
include_subdirs qualified resolution: Merged #12607 corrects module resolution so the nearest same-named module wins under include_subdirs qualified, matching bootstrap behaviour.
Merlin multi-executable config: Open #12621 fixes dune ocaml-merlin returning the wrong .eobjs directory when multiple executables share a folder. Fixes #12611.