Skip to main content

pacenotes_installer/
engine.rs

1//! The apply engine: plan from selection + ledger + cache, check, then execute.
2//!
3//! `plan` is a pure function over values the caller has already read, so the
4//! decision table is testable anywhere and a plan is reproducible.
5
6mod execute;
7mod overlap;
8mod plan;
9mod preflight;
10mod watcher;
11
12pub use execute::{execute, record_configured, snapshot_path, ExecuteError, Outcome, RESTORE_DIR};
13pub use overlap::{overlaps, Overlap};
14pub use plan::{plan, Action, Plan, PlanError, PlanInput};
15pub use preflight::{check_writable, preflight, HostFacts, Preflight, PreflightError};
16pub use watcher::{Phase, Silent, Watcher};
17
18pub(crate) use execute::{
19    install_package, open_restore_point, uninstall_package, Installing, Progress, RunContext,
20};
21pub(crate) use preflight::{check_space, probe_writable, verified_files};