uv/crates/uv-extract/src
Charlie Marsh a267a501b6
Add `Seek` fallback for zip files (#2320)
## Summary

Some zip files can't be streamed; in particular, `rs-async-zip` doesn't
support data descriptors right now (though it may in the future). This
PR adds a fallback path for such zips that downloads the entire zip file
to disk, then unzips it from disk (which gives us `Seek`).

Closes https://github.com/astral-sh/uv/issues/2216.

## Test Plan

`cargo run pip install --extra-index-url https://buf.build/gen/python
hashb_foxglove_protocolbuffers_python==25.3.0.1.20240226043130+465630478360
--force-reinstall -n`
2024-03-10 11:39:28 -04:00
..
vendor Add `fs_err` to `disallowed_method` in clippy.toml (#1950) 2024-02-26 14:15:07 +00:00
error.rs Add `Seek` fallback for zip files (#2320) 2024-03-10 11:39:28 -04:00
lib.rs Add `Seek` fallback for zip files (#2320) 2024-03-10 11:39:28 -04:00
seek.rs Add `Seek` fallback for zip files (#2320) 2024-03-10 11:39:28 -04:00
stream.rs Address #2220 (slow download perf against PyPi mirror) (#2319) 2024-03-09 19:49:29 -05:00
sync.rs Use async unzip for local source distributions (#1809) 2024-02-21 14:11:37 +00:00
tar.rs Preserve executable bit when untarring archives (#1790) 2024-02-21 14:18:44 +00:00