wit_deps

Function untar

source
pub async fn untar(
    tar: impl AsyncRead + Unpin,
    dst: impl AsRef<Path>,
    skip_deps: &HashSet<Identifier>,
    subdir: &str,
) -> Result<HashMap<Identifier, PathBuf>>
Expand description

Unpacks all WIT interfaces found within wit subtree of a tar archive read from tar to dst and returns a HashMap of all unpacked transitive dependency identifiers.

ยงErrors

Returns and error if the operation fails