Skip to main content

generate_target

Function generate_target 

Source
pub fn generate_target(
    target: &TargetSpec,
    output_dir: &Path,
    force: bool,
    provenance: &SourceProvenance,
) -> Result<GeneratedArtifact>
Expand description

Generate one target and its deterministic provenance manifest.

Source provenance must be captured before this function is called. If either deterministic destination exists, generation fails unless force is true.

ยงErrors

Returns an error on lowering, serialization, directory, overwrite, or file write failures.