Skip to main content

deterministic_zip

Function deterministic_zip 

Source
pub fn deterministic_zip(
    files: &[(ArtifactPath, Arc<[u8]>)],
    limits: ArchiveLimits,
) -> Result<Vec<u8>, Error>
Expand description

Sorted paths, fixed timestamps/permissions and stored payloads yield the same bytes for the same files with this writer version. Limits apply to both source payloads and the complete output (including ZIP metadata). All names obey the same portable collision policy as archive admission.