Skip to main content

Crate hatchzip_core

Crate hatchzip_core 

Source
Expand description

The engine behind HatchZip: extracts ZIP, 7z and tar archives, split or not, while truncating the archive behind itself, so the disk only ever has to hold about the output.

Front ends start in session: locate an archive, open it (fresh or half-extracted), get a session::SpacePlan, then hand a engine::Run the job. restore turns a half-extracted archive back into a normal one instead.

Re-exports§

pub use engine::human;

Modules§

archive
What the engine needs from an archive format: the archive split into units, byte ranges that can be truncated away once every file in them is safely on disk, and a way to decode one unit.
engine
In-place extraction, independent of the archive format.
journal
Progress record that makes an interrupted extraction resumable.
restore
Turning a half-extracted archive back into a normal one.
session
Opening an archive for extraction and working out whether it fits. Shared by the command line and the GUI, so the two never disagree.