Skip to main content

parse_pack_or_array

Function parse_pack_or_array 

Source
pub fn parse_pack_or_array(
    json: &str,
) -> KimetsuResult<(PackRef, Vec<MemoryExport>)>
Expand description

Parse a pack file body: a Pack envelope OR a bare Vec<MemoryExport> (back-compat with pre-pack exports). Returns the manifest PackRef (empty for a bare array) and the memory entries.