Repository activity
40458 results across all weeks
perf(stdune): reuse validated canonical path components
Path.Local.t already guarantees that its slash-separated components are valid filenames. Avoid validating those components again in basename, explode, and split_first_component, and reuse the canonical suffix returned by the latter directly.
Rudi Grinberg (@rgrinberg)perf(stdune): use memchr for string searches
Generalizes the spawn-specific NUL search from #16117 into a reusable forward string-search primitive backed by memchr. Stdune.String uses it for filename validation, splitting, spawn arguments, Unix path decomposition, and other forward character searches. Reverse searches and unrelated string transformations are deliberately left unchanged.
Rudi Grinberg (@rgrinberg)perf(stdune): use memchr to validate spawn arguments
Every process invocation validates the working directory, executable, and argument strings for embedded NUL bytes. Replace the OCaml byte-by-byte scan with an allocation-free C stub using libc memchr, while preserving the existing validation errors.
Rudi Grinberg (@rgrinberg)pkg: add @pkg-source alias
Motivation
Ali Caglayan (@Alizter)pkg: avoid `dune fmt` capturing `ocamlformat` from the PATH.
Desired Behavior
Alpha Issiaga DIALLO (@moyodiallo)pkg: general support for installing tools
The current design of dev tools requires every tool to be hard coded. This is not sustainable or elegant.
Shon Feder (@shonfeder)pkg: recognize default dune build commands
Works towards #9983 in the context of #8652.
Ali Caglayan (@Alizter)portable lock directories should pick the same version for cross-platform packages
Currently portable lock directories cannot always pick, without further direction, the same package version across platforms.
Ali Caglayan (@Alizter)refactor(copy-files): reuse build context
Resolve the build context once for source mapping and per-file copy rules.
Antonio Nuno Monteiro (@anmonteiro)refactor(cram): abstract test names
Represent cram test names with an abstract Cram_test.Name.t and convert them to strings only at alias and predicate boundaries.
Rudi Grinberg (@rgrinberg)refactor(cram): extract test specification
Extract the fold that combines all matching cram stanzas for a discovered test into a dedicated spec_for_test helper. The helper builds the complete test specification, including aliases, dependencies, sandboxing, environment, locks, packages, timeouts, setup scripts, and shell settings.
Rudi Grinberg (@rgrinberg)refactor(decoder): make repeat1 return a nonempty list
Make Decoder.repeat1 return Nonempty_list.t and propagate the invariant through its callers.\n\nDepends on #16164.
Antonio Nuno Monteiro (@anmonteiro)refactor(describe): share build context setup
Several dune describe subcommands repeated scheduler startup, build-system initialization, and build-context lookup. Centralize that setup in Build.describe so each command only supplies its memoized describe operation.
Rudi Grinberg (@rgrinberg)refactor(describe): share preprocessing map creation
Deduplicate creation of the preprocessed-modules map used when describing executables and libraries.
Rudi Grinberg (@rgrinberg)refactor(engine): remove unused helpers and interfaces
Remove unreferenced private helpers and interface entries from dune_engine,
Rudi Grinberg (@rgrinberg)refactor(engine): separate full action properties
Move the execution metadata stored alongside Action.t into Action.Full.Props.t. Action.Full.t now contains the action and its properties as two fields, preparing the properties for sharing without changing behavior.
Rudi Grinberg (@rgrinberg)refactor(engine): share stale subdirectory removal
Deduplicate stale subdirectory removal in load_rules so both cleanup paths share the same rule-cache eviction and filesystem removal sequence.
Rudi Grinberg (@rgrinberg)refactor(inline-tests): share library name binding
Share the inline-test library-name pform binding across runner and partition flags.
Antonio Nuno Monteiro (@anmonteiro)refactor(install): share expanded binding validation
Extract the duplicated post-expansion validation of install file bindings into a shared helper.
Rudi Grinberg (@rgrinberg)refactor(install): share recursive include expansion
Rudi Grinberg (@rgrinberg)