Skip to main content

create_source_bundle_archive

Function create_source_bundle_archive 

Source
pub fn create_source_bundle_archive(
    plan: &SourceBundlePlan,
    output: &Utf8Path,
    limits: SourceArchiveLimits,
) -> Result<SourceArchive, SourceError>
Expand description

Create and atomically publish a deterministic source ZIP.

Existing output is never replaced. Planned files are reopened and streamed through SHA-256 while ZIP bytes are written.

ยงErrors

Returns an error for changed source, unsafe output, exceeded bounds, ZIP failure, or inability to publish without clobbering.