Features
-
Dune
(files)stanza: New per-directory stanza (dune lang 3.21) to exclude files from source tree scanning, analogous to(dirs). Merged 2025-12-08. #12879 -
Dune OxCaml inline tests: Parameterised libraries now support
(inline_tests)with an(arguments ...)field to select parameter implementations. Merged 2025-12-11. #12707 -
Dune
enabled_if(proposal): Opened 2025-12-09. Adds conditional package inclusion indune-projectusing pform syntax, independent of opam. #12905 -
Dune nested dune (open): Two PRs (#12902, #12935) fix executable resolution and
PATHsetup for nested dune invocations in package management. Targeting elimination of subprocess launches for build-time gains.
Fixes
-
Dune FreeBSD/Alpine builds: Fixed lmdb stubs compilation on FreeBSD and inlined
KERNEL_VERSIONfor Alpine Linux. Both were 3.21 alpha regressions. Merged 2025-12-09 and 2025-12-14. #12901, #12926 -
Dune
fs-io/top-closureopam install: Added missing copy rules for opam templates and removed the@runteststep that triggered unrelated test builds. Merged 2025-12-14. #12954
Compatibility and Releases
-
Dune 3.21.0~alpha3: Released 2025-12-11. Adds
(files)stanza, OxCaml parameterised library instantiation,dune promotion show,(lang rocq)mode,unused-libsalias, andDUNE_ROOTenv var. Breaking: warning 9 no longer forced in dev mode (dune lang 3.21). Release -
Dune
DUNE_JOBS: New environment variable for controlling build concurrency.INSIDE_DUNEno longer forces single-threaded builds, enabling parallel nested dune invocations (e.g., OxCaml compiler builds). Merged 2025-12-12. #12800