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;
16mod chosen;
17pub mod engine;
18mod fsutil;
19pub mod journal;
20mod platform;
21pub mod replace;
22pub mod restore;
23pub mod session;
24
25pub use engine::human;