pub fn write_bundle<P: AsRef<Path>, Q: AsRef<Path>>(
manifest_path: P,
out_path: Q,
) -> Result<BundleSummary>Expand description
Pack an exploded packed dataset into a single .sttb bundle file.
The manifest JSON is embedded verbatim in the header (so
unpack_bundle reproduces manifest.json byte-identically) and the
objects are laid out back-to-back at 8-byte-aligned offsets in canonical
manifest order — deterministic: the same dataset packs to byte-identical
bundle bytes. Every content-addressed object is re-hashed on the way in;
a mismatch aborts the pack (never emit a bundle that cannot verify).