Starting with 0.131, uv uses tar-codec to parse source distributions. tar-codec is roughly twice as fast as our previous tar implementation (astral-tokio-tar) while also reducing uv’s exposure to parser differentials and other security risks. This blog post is about tar-codec itself: what it is, and what compelled us to build and optimize it. Read on if you, too, would like to know too much about tar archives. Background: uv and tar # What follows is an extended digression on the tar format. If all you care about is tar-codec, skip to it. As a Python packaging tool, uv is in the business of resolving and installing Python packages. uv requests installable distributions from various sources (principally package indices like PyPI) and installs them on the user’s behalf. This is how you go…
A fast and secure tar parser for the Rust ecosystem
Advertisement