Skip to main content

write_report

Function write_report 

Source
pub fn write_report(
    report: &Report,
    out_dir: &Path,
    workspace_root: &Path,
) -> Result<()>
Expand description

Write every artifact in report to disk. out_dir is the base for artifacts whose location is ArtifactLocation::OutDir; the workspace root is the base for ArtifactLocation::WorkspaceRoot artifacts (typically platform manifests such as context7.json).

Existing files are overwritten; parent directories are created as needed.