Dune 3.20.0 releases per-test aliases (dune build @runtest-a), new %{os} percent forms, and BLAKE3-based digesting, while dune exec now runs concurrently with a watch-mode instance. Separately, a merged opam change fetches shared archive sources once per multi-package install rather than per package.
Features
- Dune 3.20.0:
(test)stanzas generate per-test aliases; run one test withdune build @runtest-a. Adds%{os},%{os_version},%{os_distribution},%{os_family}percent forms. (release) - Dune 3.20.0: Switches target and rule digesting from MD5 to BLAKE3.
dune execruns concurrently with a watch-mode instance;dune promoteworks while the watch server is active. (release) - OxCaml: Merged shrink wrapping moves the function prologue as late as possible in the CFG, reducing emitted epilogues. Enabled via
-cfg-prologue-shrink-wrap. #4544 - OxCaml: Merged redefinition of
'a Atomic.tas a record with a single mutable atomic field, enabling[%atomic.loc t.contents]. #4551 - opam: Merged change fetches shared archive sources once per run without per-package checksums, reducing repeated downloads during multi-package installs. Closes #5638. (#6627)
- Eio: Merged process-group support (
setpgid) in Unix backends places child processes in distinct groups. The publicEio.ProcessAPI is still undecided. #802 - js_of_ocaml (WASM): Merged closure optimization omits the code pointer from closure objects when unused, reducing allocated memory. #2059
Fixes
- OCaml ocamlprof: No longer instruments unreachable match clauses, fixing a syntax error with empty variant types. Merged and cherry-picked to 5.4.0. #14197
- Dune 3.20.0:
dune runtestregression: relative paths from a subdirectory resolve against the project root.runtest_aliasregression: custom aliases execute tests in all modes. (#12250), (#12243) - OxCaml runtime GC: Merged change replaces the unconditional minor GC before large array writes with a heuristic: GC only if writes exceed 10% of the remembered set. #4537
- opam: Merged replacement of
getconfand shell utilities with a C binding to query the core count, removing a portability dependency. (#6634)
Compatibility and Releases
- Dune 3.20.1: Release tracker opened to collect backports for the
runtestandruntest_aliasregressions. (#12247)