pub fn add_package(&mut self, package_manifest_path: impl AsRef<Path>) -> Result<()> {
        let manifest_file = File::open(package_manifest_path)?;
        let manifest_reader = BufReader::new(manifest_file);
        let manifest: PackageManifest = serde_json::from_reader(manifest_reader)?;
        self.manifest.add_package(manifest)
    }
/// Add a package to blobfs by inserting every blob mentioned in the
/// `package_manifest_path` on the host.
Add a package to blobfs by inserting every blob mentioned in the
`package_manifest_path` on the host.
Add a package to blobfs by inserting every blob mentioned in the ` package_manifest_path ` on the host .
pub fn add_package(&mut self, package_manifest_path: impl AsRef<Path>) -> Result<()> {
        let manifest_file = File::open(package_manifest_path)?;
        let manifest_reader = BufReader::new(manifest_file);
        let manifest: PackageManifest = serde_json::from_reader(manifest_reader)?;
        self.manifest.add_package(manifest)
    }
pub fn add_package ( & mut self , package_manifest_path : impl AsRef < Path > ) -> Result < ( ) > { let manifest_file = File :: open ( package_manifest_path ) ? ; let manifest_reader = BufReader :: new ( manifest_file ) ; let manifest : PackageManifest = serde_json :: from_reader ( manifest_reader ) ? ; self . manifest . add_package ( manifest ) }
Add a package to blobfs by inserting every blob mentioned in the
`package_manifest_path` on the host.
Add a package to blobfs by inserting every blob mentioned in the ` package_manifest_path ` on the host .
&mut self
package_manifest_path
impl AsRef<Path>
&mut self
package_manifest_path
impl AsRef<Path>