Thicket thicket
ocaml
REPOS 9

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

W50.2025 · 8–14 Decocaml/dune

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 in dune-project using pform syntax, independent of opam. #12905

  • Dune nested dune (open): Two PRs (#12902, #12935) fix executable resolution and PATH setup 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_VERSION for Alpine Linux. Both were 3.21 alpha regressions. Merged 2025-12-09 and 2025-12-14. #12901, #12926

  • Dune fs-io/top-closure opam install: Added missing copy rules for opam templates and removed the @runtest step 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-libs alias, and DUNE_ROOT env 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_DUNE no longer forces single-threaded builds, enabling parallel nested dune invocations (e.g., OxCaml compiler builds). Merged 2025-12-12. #12800