Dune 3.21.0 adds coq.theory mode, dune promotion show, and the unused-libs alias. OCaml stdlib 5.5 merges Array.stable_sort_sub, Seq.delay, and String.includes ~affix for the upcoming release, while lwt 6.0.0 ships as a major version.
Features
Dune 3.21.0: released 2026-01-12. Adds coq.theory mode, dune promotion show, unused-libs alias, and %{cmt:...} variables; from language 3.21 the default warning set is no longer overridden. Release notes
OCaml stdlib 5.5: adds Array.stable_sort_sub, Seq.delay, and String.includes ~affix. Merged for the upcoming 5.5 release. #13343, #10177, #14439
Dune --target-exec: merged post-3.21.0. Enables running target binaries through a host wrapper during cross-compilation, e.g. dune build -x windows --target-exec windows=wine. #13112
Dune action tracing: merged 2026-01-12 and 2026-01-18. External actions can emit structured events via dune_action_trace; inspect with dune trace cat. #13267, #13348
OxCaml ARM64 backend: merged a rewritten typed DSL with register and instruction constraints enforced by the OCaml type system. #5193
js_of_ocaml WASI runtime: open PR adds wasm_of_ocaml --enable wasi to produce WASI binaries runnable via wasmtime -W=all-proposals=y. #1831
Fixes
OCaml runtime (Windows): replaces GetTempFileName-based path generation in Unix.socketpair with a PID-plus-counter scheme, eliminating the TOCTOU race causing EADDRINUSE under concurrent domains. #14461
Dune virtual module crash: fixed 2026-01-17. Resolves the internal error when a public library uses virtual_modules together with public_names. #13345
OxCaml mode solver: fixed non-commutativity in meet and join by replacing Varmap.map with a sequential fold over mode variables. #5233
Compatibility and Releases
lwt 6.0.0: merged 2026-01-12. Major version release covering lwt, lwt_direct, lwt_ppx, and lwt_runtime_events. #29184
menhir 20260112: under review. Breaking changes: effect becomes a reserved word, stack and MenhirLib.General are removed, and --strict promotes all warnings to errors. #29211
OCaml 5.5 relocatable packaging: merged 2026-01-14. Removes the conf-ocaml flag by embedding configuration via an extra-source; fixes ocaml:stubsdir to emit absolute paths. #29085, #29224