Skip to main content

hatchzip_core/
lib.rs

1//! The engine behind HatchZip: extracts ZIP, 7z, tar, `.tar.gz` and RAR archives,
2//! split or not, while truncating the archive behind itself (or, for a
3//! `.tar.gz`, punching out what it has decoded), so the disk only ever has to
4//! hold about the output.
5//!
6//! RAR needs the `rar` feature, which compiles UnRAR's C++ source under its
7//! own license (`LICENSE-UNRAR`); without it, RAR archives are refused before
8//! anything is touched.
9//!
10//! Front ends start in [`session`]: locate an archive, open it (fresh or
11//! half-extracted), get a [`session::SpacePlan`], then hand a [`engine::Run`]
12//! the job. [`restore`] turns a half-extracted archive back into a normal
13//! one instead.
14
15pub mod archive;
16pub mod engine;
17mod fsutil;
18pub mod journal;
19mod platform;
20pub mod restore;
21pub mod session;
22
23pub use engine::human;