znippy_compress/lib.rs
1// compress/src/lib.rs
2
3/// **Introspection / emit marker** — record one functional-status row for the
4/// nornir test matrix. Wraps `nornir_testmatrix::functional_status` behind the
5/// `testmatrix` feature (a compiled-out `#[inline]` no-op otherwise, with no
6/// nornir dep in the default build). The slot / stream packers call this at each
7/// `run_ordered_sink` completion so `nornir test --features testmatrix` SEES the
8/// ordered-sink compress path's health. Defined only under the feature — every
9/// call site is itself `#[cfg(feature = "testmatrix")]`.
10#[cfg(feature = "testmatrix")]
11#[inline]
12pub(crate) fn functional_status(component: &str, check: &str, ok: bool, detail: &str) {
13 nornir_testmatrix::functional_status(component, check, ok, detail);
14}
15
16pub mod slot_packer;
17pub mod stream_packer;
18
19pub use slot_packer::{compress_dir, compress_dir_with_policy};
20pub use stream_packer::{
21 compress_stream, compress_stream_with_policy, compress_stream_with_sink,
22 compress_stream_with_sink_and_policy, ArchiveEntry, StreamCompressor,
23};
24
25/// Re-exported so a caller can state what it already knows about its input
26/// without also depending on `znippy-common` directly.
27pub use znippy_common::precompressed::{ContentHint, SkipPolicy};