Fixes
-
Menhir + relocatable compiler:
Unbound module Stdlibon macOS.dune buildwith a(menhir ...)stanza anddune pkg(relocatable compiler) now succeeds. The fix adds an explicit Stdlib dependency to the inference rule and reclassifies the path for sandboxing. Merged in #16374; will ship in 3.25. -
Menhir qualified module group interfaces (
include_subdirs qualified). Menhir parsers can now serve asfoo/foo.mlgroup interfaces. The fix opens a private alias interface for inference and uses digest-based helper names to avoid filename-length and collision issues. Merged in #16464 and #16489; closes #8989 (open since 2023). A follow-up extending the fix to OCaml 4.02–4.07 was opened in #16497. -
Windows: file-descriptor hashing crash. Hashing Windows handles by integer value caused assertion failures and CI timeouts. Dune now uses
Poly.hashon Windows. Merged in #16476; fixes #16459. -
Concurrent
dune buildRPC rejection. Runningdune buildwhile another instance holds the build server now produces a descriptive error instead ofserver error (error kind: Code_error). Merged in #16486; fixes #16219. -
Package dependency closure for installed-file tracking. Library-induced package dependencies are now followed to their full package closure, preventing stale install states. Merged in #16362.
Features
-
job_slotsrule (proposal). A new rule lets a build compute and expose a slot count via an environment variable, enabling polyglot sub-builds (e.g. Cargo) to size their parallelism without a jobserver. Open in #16475; labelledneeds-version-bump, so it will require a new dune language version. -
Merlin PPX cache (proposal). Dune would emit
USE_PPX_CACHEandPPX_DEPSMerlin directives so the editor caches PPX-processed files, reducing editor latency for PPX-heavy projects. Open in #16460; depends on a Merlin release. -
-Werror=unguarded-availability-newfor C/C++ on macOS (proposal). Dune would add this flag to standard C/C++ flags so that calls to APIs newer than the deployment target fail at compile time rather than crash at runtime. Open in #16456; fixes #16413.
Compatibility and Releases
- The Menhir/relocatable-compiler fix (#16374) is targeted for the 3.25 release; a nightly binary is available via nightly.dune.build. The
job_slotsrule (#16475) will require a language-version bump and is expected in 3.26.