Skip to main content

buildl_core/execute/
mod.rs

1//! Execute, the fourth phase: from a plan to a finished build.
2//!
3//! Its own directory because it is a phase, and each phase has one home that names no other.
4//! Recording what an action produced is the last step of running it, so it lives here too.
5//!
6//! Responsibilities: [`execute`]; `gate`, which bounds how many runs are in flight at once;
7//! `remote_action`, which describes one task for a remote cache;
8//! `fetch`, which downloads and checks a result the remote holds, then keeps it in the store;
9//! and `upload`, which describes a run for the remote cache and sends it.
10//!
11//! Non-responsibilities: planning the build, which the phase before this one does; and running
12//! a command, storing content, keeping rows or writing the log, which are each a port's.
13//!
14//! This file holds only module declarations and re-exports, so it carries no logic to unit-test.
15
16mod admission;
17pub mod assembly;
18pub(crate) mod fetch;
19mod gate;
20pub(crate) mod perform;
21pub(crate) mod record;
22pub(crate) mod remote_action;
23mod schedule;
24pub(crate) mod settle;
25pub(crate) mod upload;
26
27#[cfg(test)]
28pub(crate) mod fixtures;
29
30pub use assembly::{ensure_sandboxed_remote, execute};