Skip to main content

Module bundle

Module bundle 

Source
Expand description

Packaging a crate::pipeline::Checked pipeline into a .cfbundle.

Container: catalog::BUNDLE_MAGIC (b"CFBD"), then manifest_len: u64 little-endian, then the JSON manifest, then the concatenated stage bytes, with offsets recorded per node in the manifest. catalog.rs’s read_bundle_signature is the read side of this exact format; the magic bytes and header length are shared constants (BUNDLE_MAGIC, BUNDLE_HEADER_LEN) rather than independently-defined literals, so the two sides cannot silently drift apart.

No timestamps or absolute paths anywhere in the output: that’s what makes two builds of the same spec against the same catalog state byte-identical, so re-cataloging a rebuild never produces a spurious new hash for “the same” pipeline.

Functions§

build
Serialize a checked pipeline into .cfbundle bytes.