Skip to content

Inconsistent zip compression and decompression memory usage warnings #178

@marcospb19

Description

@marcospb19

image

The limitation of compressing zip archives with other streams only occurs when using multiple formats, like:

archive.zip.gz, or archive.zip.xz.xz.xz.xz.

.zip requires io::Seek, and it can only be provided in fs::File and Vec<u8>, so we can either compress directly to the final file, or load into a Vec, but not pipe to encoding streams.

Loading the whole file to a Vec might exhaust memory capacity, that's why we need to give those warnings in specific cases.


While filing this, I found out the decompression command has another warning with different formatting:

image

These messages formats should be consistent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions