pub fn load_package(
trust: &mut TrustStore,
bytes: &[u8],
assets_root: &Path,
) -> Result<LoadedPackage, String>Expand description
Verifies the package bytes with trust, writes its assets under
assets_root (<root>/<app id>/<package hash>/, once per package) and
records its build (older builds of the app are refused from now on).