Thicket thicket
ocaml
REPOS 9

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

W41.2025 · 6–12 Octocaml/dune

Features

Dune (OxCaml) – (parameters ...) library field: New (parameters p_intf q_intf ...) field in the library stanza compiles each module with the corresponding -parameter flag. Requires the OxCaml compiler; standard OCaml does not support this. (#12336, by @art-w)

Dune – dune tools env: New command prints shell-evaluable PATH and environment exports for installed dev tools, so terminal editors can invoke ocamllsp or ocamlformat without a dune prefix. Intended use: eval $(dune tools env). (#12521, by @gridbugs)

Compatibility and Releases

Dune cram – conflict detection: Cram tests now report an error when two commands write to the same output region, making conflicting expectations explicit rather than silently overwriting. Opt-in via a new flag. (#12538, by @rgrinberg)

Dune docs – inline code wrapping: A CSS rule prevents the HTML documentation from breaking inline code spans across lines, improving readability of variable and flag references. (#12541, by @MisterDA)

Fixes

Dune pkg – shared dependency cache: Dev-tool and project builds now share compiled package artifacts via a content-addressed directory name, eliminating redundant compiler rebuilds when running dune tools install. Fixes #12491. (#12526, by @gridbugs)

Dune pkg – no rebuild on lang bump: Package build rules now ignore per-project settings (including dune lang version), so changing the language version in dune-project no longer triggers a full compiler rebuild. Fixes #12131. (#12556, by @rgrinberg)

Dune – dune install --create-install-files overwrite: dune install can now overwrite a read-only .install file it previously generated, resolving build failures for packages (e.g. caqti) whose opam build commands re-invoke dune install. Fixes #12540. (#12542, by @MisterDA)

Dune – skip ocamldep on single-module buildables: Transitive ocamldep runs are no longer generated for buildables containing a single module, reducing unnecessary rule evaluation. (#12555, by @anmonteiro)