Function wit_deps::untar

source ·
pub async fn untar(
    tar: impl AsyncRead + Unpin,
    dst: impl AsRef<Path>,
    skip_deps: &HashSet<Identifier>,
) -> 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