Skip to main content

extract_hyperd

Function extract_hyperd 

Source
pub fn extract_hyperd(
    zip_path: &Path,
    dest_dir: &Path,
) -> Result<Vec<PathBuf>, Error>
Expand description

Extract everything under lib/hyper/ (or bin/hyper/ on Windows) from the Hyper API zip into dest_dir, flattening the wrapper prefixes away. Returns the list of extracted file paths relative to dest_dir.

ยงErrors

Returns Error::Io for filesystem failures, Error::Zip if the archive cannot be opened or parsed, and Error::HyperdNotInArchive if the archive does not contain a hyperd / hyperd.exe entry.