pacenotes_installer/zip.rs
1//! A zip reader over miniz_oxide, for game-root overlays: what is in a package,
2//! and putting it on disk where it says. No entry is ever interpreted, and there
3//! is no writer, since backups are plain file copies.
4//!
5//! Paths are `/`-separated on every host, because they are also the ledger's keys.
6//! An archive and each entry are held in memory whole; real packages stay under 50 MB.
7
8mod archive;
9mod central_directory;
10mod crc32;
11mod entry_data;
12mod entry_name;
13mod extraction;
14mod zip_error;
15
16pub use archive::Archive;
17pub use entry_name::safe_relative;
18pub use extraction::{entries, entry_paths, extract, read_entry, FileEntry};
19pub use zip_error::ZipError;
20
21#[cfg(test)]
22mod tests;