//! Deterministic hashing for VisualBundleCore.
use crateBundleError;
use crateVisualBundleCore;
use canonical_json;
use ;
/// Computes the deterministic hash of a VisualBundleCore.
///
/// The hash is computed from the canonical JSON representation of the core.
///
/// # Contract
///
/// Given the same `VisualBundleCore`, every supported platform produces
/// exactly the same canonical bytes and exactly the same SHA-256 digest.
///
/// # Errors
/// Returns `BundleError` if canonical serialization fails.