Skip to main content

tzap_core/
lib.rs

1//! Core implementation surface for the tzap v0.36 archive format.
2//!
3//! This crate owns wire-format parsing, validation, crypto, compression, FEC,
4//! and archive read/write primitives. The CLI stays intentionally thin.
5
6pub mod compression;
7pub mod crypto;
8pub mod fec;
9pub mod format;
10pub mod metadata;
11pub mod padding;
12pub mod reader;
13pub mod tar_model;
14pub mod wire;
15pub mod writer;
16
17pub use crypto::{HmacDomain, KdfParams, MasterKey, Subkeys};
18pub use format::{
19    AeadAlgo, CompressionAlgo, FecAlgo, FormatError, KdfAlgo, FORMAT_VERSION, VOLUME_FORMAT_REV,
20};
21pub use reader::{
22    open_archive, open_archive_volumes, open_archive_with_bootstrap_sidecar,
23    open_non_seekable_archive, sequential_extract_tar_stream, ArchiveEntry, OpenedArchive,
24    ReaderOptions,
25};
26pub use tar_model::{MetadataDiagnostic, SafeExtractionOptions, TarEntryKind};
27pub use writer::{
28    write_archive, write_archive_with_dictionary, write_archive_with_dictionary_and_kdf,
29    write_archive_with_kdf, write_empty_archive, RegularFile, WriterOptions,
30};