Skip to main content

load

Function load 

Source
pub fn load(
    source: &dyn BundleSource,
) -> Result<WorkbookBundle, BundleLoadError>
Expand description

Load + fail-closed integrity-verify a bundle from any BundleSource.

This is the SINGLE shared verifier (WBSV-08): a local-dir bundle and an embedded bundle are checked identically. Returns a fully-verified WorkbookBundle or a fail-closed BundleLoadError.

ยงErrors

Returns BundleLoadError::UnexpectedMember for an extra member, BundleLoadError::IntegrityMismatch for a byte-flip/swap, BundleLoadError::StampMismatch for a provenance desync, BundleLoadError::Parse for malformed JSON, or BundleLoadError::Source for a read failure.