Skip to main content

load_package_refs

Function load_package_refs 

Source
pub fn load_package_refs(
    configs: &[&Value],
    origin: Origin,
    arena: &mut Vec<Package>,
    batch: bool,
) -> Result<Vec<usize>, LoadError>
Expand description

load_packages over borrowed configs: a caller reading them out of a larger document (a lock’s packages) hands the entries over without copying the document first.