Tools covers builds, package management, editors, documentation and JavaScript compilation.
W48.2024 · 25 Nov – 1 Dec/ocaml/dune
Features
Dune 3.17.0: enables the Dune cache by default; the new enabled-except-user-rules setting excludes user-written rules to avoid breaking rules with incomplete dependency declarations. (#10944)
Dune 3.17.0: adds Wasm_of_ocaml support for building OCaml to WebAssembly. (#11093)
Dune 3.17.0:dune runtest mytest.t now runs a single test file by name instead of requiring the full suite. (#11041)
Dune 3.17.0: adds codeberg as a source option, e.g. (source (codeberg user/repo)), alongside existing GitLab and GitHub forms. (#10904)
Dune 3.17.0: the (project_defaults) stanza in the dune config file sets default authors, maintainers, and license values for new dune-project files. (#10835)
Dune 3.17.0: supports the OCaml 5.2 -H compiler flag (requires lang version 3.17), giving correct semantics for (implicit_transitive_deps false) and exposing hidden dependencies to Merlin/OCaml-LSP. (#10644, #10535)
Fixes
Dune 3.17.0: C stubs are no longer rebuilt when Dune's stderr is redirected, eliminating spurious recompilation. (#10883)
Dune 3.17.0: Merlin rule generation now tolerates files without an extension, fixing editor integration for such sources. (#11128)
Compatibility and Releases
Dune 3.17.0: removes all remnants of the experimental patch-back-source-tree feature; projects using it must migrate. The exports field in generated META files is emitted only at lang version ≥ 3.17. (#10771, #10831)
Dune 3.17.0: Configurator now uses pkgconf as the pkg-config implementation when available and forwards the target from ocamlc -config. dune init proj no longer adds a dune dependency to dune-project. (#10937, #11129)