Skip to main content

nzb_postproc/
lib.rs

1//! Post-processing pipeline: par2 verify/repair, RAR/7z/ZIP extraction, cleanup.
2//!
3//! This crate contains:
4//! - `detect` — File detection helpers (par2, RAR, 7z, ZIP, cleanup candidates)
5//! - `par2` — Native PAR2 verify/repair via `rust-par2`
6//! - `unpack` — RAR extraction (unrar), 7z (7z binary), ZIP (zip crate)
7//! - `pipeline` — Orchestrate: verify -> repair -> extract -> cleanup
8
9pub mod detect;
10pub mod par2;
11pub mod pipeline;
12pub mod unpack;
13
14// Re-export nzb-core (and transitively nzb-nntp) so consumers only
15// need nzb-postproc as a single dependency.
16pub use nzb_core;
17
18pub use detect::{ArchiveType, RarVolumeInfo, has_usable_output, parse_rar_volume};
19pub use par2::recovery_can_cover;
20pub use pipeline::{PostProcConfig, PostProcResult, run_pipeline};
21pub use unpack::find_unrar;