tzap-core
tzap-core is the v44-compliant Rust reference library for documented
supported tzap archive workflows, with v43 reader compatibility. It owns wire
parsing, metadata validation, compression, optional encryption, FEC recovery
structures, archive writing, archive opening, and safe extraction primitives.
Use this crate as the direct Rust API for tzap archives in applications, services, backup tools, and custom workflows. Add companion RootAuth signing crates when origin-authenticated signatures are part of your product.
Install
[]
= "0.1.8"
What It Provides
- v44 encrypted and explicit plaintext archive writing and opening
- AEAD encryption, HMAC authentication, unencrypted digest mode, and KDF handling
- zstd compression and dictionary support
- multi-volume layout and FEC recovery
- bootstrap sidecar parsing and verification
- index-only path and size listing
- file-backed
ArchiveReadAtopening for lazy random-access extraction - safe extraction and tar metadata normalization
- RootAuth writer request, footer, and verifier callback surfaces
Example
use ;
use File;
RootAuth Integration
tzap-core is the standalone archive foundation. It exposes writer request,
footer, and verification callback surfaces, so signing profiles compose cleanly
through companion crates.
For Ed25519 or X.509 RootAuth signing, pair this crate with
tzap-plugin-signing. The core
crate recomputes archive roots and gates when a plugin verifier may claim full
RootAuth or public no-key verification.
More Information
- Repository: https://github.com/tzap-org/tzap
- Implemented format specification: https://github.com/tzap-org/tzap/blob/main/specs/tzap-format-revisedv44.md
- v43 compatibility specification: https://github.com/tzap-org/tzap/blob/main/specs/tzap-format-revisedv43.md
- CLI crate: https://crates.io/crates/tzap