uv/crates/install-wheel-rs/src
Charlie Marsh 5d53040465
Stream zip archive when fetching non-range-request metadata (#1792)
## Summary

If a registry doesn't support range requests, then today, we download
the entire wheel to disk and then read the metadata from the downloaded
archive. This PR instead modifies the registry client to stream the
zipfile and stop as soon as it's seen the metadata, which should be more
efficient.

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

## Test Plan

Made this the _only_ path for downloading metadata; verified that the
test suite passed.
2024-02-20 22:12:21 -05:00
..
install_location.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
lib.rs Stream zip archive when fetching non-range-request metadata (#1792) 2024-02-20 22:12:21 -05:00
linker.rs Avoid attempting rename in copy fallback path (#1546) 2024-02-16 17:08:49 -05:00
main.rs Add INSTALLER file to install-wheel-rs (#760) 2024-01-03 17:30:54 -05:00
pip_compileall.py Copy over `install-wheel-rs` crate (#33) 2023-10-06 21:38:38 -04:00
python_bindings.rs Add INSTALLER file to install-wheel-rs (#760) 2024-01-03 17:30:54 -05:00
record.rs Store unzipped wheels in a cache (#49) 2023-10-08 04:04:48 +00:00
script.rs Support dotted function paths for script entrypoints (#1622) 2024-02-19 10:09:12 +00:00
uninstall.rs Add a dedicated error for missing RECORD files (#762) 2024-01-04 00:28:50 +00:00
wheel.rs Support dotted function paths for script entrypoints (#1622) 2024-02-19 10:09:12 +00:00