astral-sh/uv
uv-extract
crates/uv-extract/ extracts archives — wheels (zip), source distributions
(.tar.gz/.tar.bz2/.tar.xz/.tar.zst/.zip.zst) — with concurrent hashing.
Purpose
Most archive operations in uv need to compute hashes while extracting, both for cache content-addressing and for the resolver's hash strategy. This crate provides streaming extraction that hashes on the fly.
Key abstractions
Hasher— wraps a hash algorithm and a digest in progress.HashReader— wraps anAsyncReadto feed bytes into aHasherwhile passing them through.- Functions that extract a
.whlor sdist to a target directory while populating a hash.
See also
uv-pypi-typesforHashAlgorithm/HashDigest.uv-cache— extraction is the producer; cache is the consumer.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.