1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Groupcompress format: delta wire encoding, block framing, and the
//! compressor / manager glue that backs the Python `GroupCompressVersionedFiles`.
//!
//! # Submodule tour
//!
//! - [`delta`] — low-level delta wire format: base128 integers, copy/insert
//! instructions, and whole-delta apply. Structured [`delta::DeltaError`]
//! lets callers discriminate truncated streams, out-of-range copies, and
//! length mismatches without string matching.
//! - [`line_delta`] — line-oriented delta generator that mirrors the
//! original Python `LinesDeltaIndex`. Produces the same on-wire format as
//! the other delta producers but operates over line arrays rather than
//! byte streams.
//! - [`rabin_delta`] — rolling-hash delta generator (Rabin fingerprinting)
//! for long byte streams.
//! - [`block`] — groupcompress block framing: item type byte, base128
//! length, fulltext vs delta payload.
//! - [`compressor`] — `TraditionalGroupCompressor` and
//! `RabinGroupCompressor` — the two high-level "add bytes, get back a
//! key" entry points.
//! - [`manager`] — block rebuild / well-utilised / trim policy helpers
//! used by `_LazyGroupContentManager` on the Python side.
//! - [`wire`] — `groupcompress-block` network record framing (header
//! lines plus wire prefix construction).
//! - [`sort`] — `sort_gc_optimal`, the topological groupcompress-ordering
//! routine used when streaming records to a target repository.
//! - [`gcvf`] — the `GroupCompressVersionedFiles` orchestration: read-memo
//! types, block batching, and record-stream assembly.
use ;
lazy_static!