Struo
← Changelog

Experimental Zig dependencies resolve in the build graph

Struo now reads pinned build.zig.zon dependencies recursively and schedules their acquisition as individual graph actions. Native Zig acquires and verifies one specified source at a time; Struo chooses and expands its dependencies. Verified sources are cacheable outputs shaped as zig-pkg/<hash> beneath Struo's output directory rather than mutations to the workspace's native store.

Use packages on zig_dependencies to select each consumer's direct aliases, including lazy packages. Independent consumers can compile when their own closures are ready, while unrelated packages are still being acquired. Local path dependencies and existing native trees remain supported; native trees are rehashed before publication. Another vendor_dir selects a manually maintained vendor layout.

Use zig_dependency_update to propose native URL, hash, path and lazy changes. Struo acquires each selected source and emits proposed.zon with a source transaction that checks the exact prior manifest bytes. Ordinary builds and cache restoration never rewrite build.zig.zon.

Graph discovery remains experimental: durable query/affected-test replay and transactional source-publication integration are still under verification.