Skip to main content

compute_target_state

Function compute_target_state 

Source
pub fn compute_target_state(
    target: &Utf8Path,
    options: &InitOptions,
) -> Result<TargetState, AppError>
Expand description

What this binary would put in a target, and what it would say.

Observation happens here and projection happens in crate::candidate. Everything this function reads from the target is a value it hands over, so the bytes a stage renders and the bytes a landing writes come out of one pure pass over the same evidence.

ยงErrors

AppError::Refused when this release declares no such profile, when a marked region cannot be read, or when the root author-instructions file is a link, and I/O errors reading the target.