Dune 3.25 runs pkg-config queries, ocaml-mdx generators, and PPX lint actions inside the sandbox by default, while dune pkg lock now solves all platform roles in a single SAT problem. A Marshal overflow fix is backported to 4.14, and opam 2.6.0~beta1 is the first beta of the 2.6 series.
Features
-
Dune 3.25:
pkg-configqueries,ocaml-mdxgenerators, and PPX lint actions now run inside the sandbox by default. Earlier language versions retain prior behaviour. (#16178, #16177, #16176) -
dune pkg locksolves all platform roles in one SAT problem; packages on multiple platforms are constrained to the same version. (#15982, by Alizter) -
Int.popcount,Int.leading_zeros,Int.trailing_zerosbecome%popcount,%clz,%ctzprimitives; arm64 emits native instructions. Open. (#15018) -
opam 2.6.0~beta1 merged: first beta of the 2.6 series (8 packages). (#30542)
Compatibility and Releases
-
Experimental
(fdo ...)workspace field removed; projects using it must delete the field. (#16198) -
wire 1.2.0: fixed-width integer fields decode to typed carriers (
uint8→Wire.UInt8.t);uint63/uint63beremoved; OCaml ≥ 5.3 required. (#30580) -
OpamFilename.in_dirremoved in 2.6.0~beta1. UseOpamfile.exec/OpamSystem.commandfor in-directory execution. (#7103)
Fixes
-
Marshal.from_stringandMarshal.from_channelreject data whoseheader_len + data_lenoverflows, preventing ineffective bounds checks. Backported to 4.14. (#15019, #15030) -
RPC: relative
build,exec,runtestpaths sent to a running Dune process are now interpreted from the client invocation directory, not the server's startup directory. (#16267) -
odocno longer raisesFailure("invalid core type")when awith-bound contains an arbitrary type. Fixes documentation builds forbase. (#1466) -
Wasm Node runtime resolves
.wasmassets relative tomodule.filenameinstead ofrequire.main.filename. Programs loaded viarequire, symlinks, or worker threads no longer crash. (#2389, by vouillon) -
Multiple LSP methods (
workspace/symbol,textDocument/rename,textDocument/signatureHelp, etc.) now accept nullable and variant result shapes per LSP 3.18. (#2154, #2153, #2152, #2151, #2025)