Skip to main content

parse

Function parse 

Source
pub fn parse(bytes: &[u8]) -> Result<Bundle>
Expand description

Parse and validate an untrusted bundle (hh import file.hh). Never panics: every malformed-input path returns a precise BundleError.

§Errors

See BundleError’s variants for every rejection reason (bad zstd, bad tar entry, missing/malformed manifest, unsupported format_version, blob hash mismatch, missing referenced blob, events digest mismatch).