pub struct Limits {
pub archive_size: u64,
pub entries: usize,
pub metadata_size: u64,
pub member_size: u64,
pub total_size: u64,
}Expand description
Limits applied when reading ZIP archives.
Raising these values permits correspondingly more memory, I/O, or CPU work. Compressed input and decoded output have independent bounds; no compression ratio heuristic is needed to bound highly compressible files.
Fields§
§archive_size: u64Maximum encoded archive length (default: 128 GiB).
entries: usizeMaximum number of members (default: 100,000).
metadata_size: u64Maximum cumulative metadata size (default: 64 MiB).
Counts central directory headers, local headers, and the ZIP64 end record
when present. Readers charge local headers as they resolve each member.
The ZIP64 locator and classic end record (including the archive comment)
count only toward Self::archive_size.
member_size: u64Maximum uncompressed size of one member (default: 8 GiB).
total_size: u64Maximum sum of uncompressed member sizes (default: 64 GiB).