[−][src]Function librarian::extract_archive
pub fn extract_archive<T: AsRef<Path> + ?Sized>(
archive: &T,
target: Option<&Path>
) -> Result<PathBuf, ExtractError>
Extract the archive to a folder and return the path to the extracted files. Zip/tar/tar.gz archives are supported. If extraction target path isn't provided and the function is executed from a build script, the build script output folder is used.
let path_to_dylib_folder = librarian::extract_archive(path_to_lib_zip, None)?.join("bin"); librarian::install_dylibs(&path_to_dylib_folder, None, None)?;