fn locally(path: &Path, spec: &str) -> Result<(), Error> {
    let dir = temp_dir()?;

    unpack_archive(path, dir.path(), spec)?;
    install_script(dir.path())
}
/// installs the build in a package at path `path` with specification `spec`
/// # Errors
/// Returns `Error::Io` if opening the temporary directory fails.
/// Returns `Error::Unpack` if unpacking the archive to the temporary directory fails.
installs the build in a package at path `path` with specification `spec`
installs the build in a package at path ` path ` with specification ` spec `
fn locally(path: &Path, spec: &str) -> Result<(), Error> {
    let dir = temp_dir()?;
    unpack_archive(path, dir.path(), spec)?;
    install_script(dir.path())
}
fn locally ( path : & Path , spec : & str ) -> Result < ( ) , Error > { let dir = temp_dir ( ) ? ; unpack_archive ( path , dir . path ( ) , spec ) ? ; install_script ( dir . path ( ) ) }
installs the build in a package at path `path` with specification `spec`
installs the build in a package at path ` path ` with specification ` spec `
path
&Path
spec
&str
path
&Path
spec
&str
errors
Returns `Error::Io` if opening the temporary directory fails.
Returns `Error::Unpack` if unpacking the archive to the temporary directory fails.
Returns ` Error :: Io ` if opening the temporary directory fails . Returns ` Error :: Unpack ` if unpacking the archive to the temporary directory fails .