Oriel — AI & technology worth noticing, every day.

A fast and secure tar parser for the Rust ecosystem

Web page · https://astral.sh/blog/tar-codec

First seen by Oriel on .

AI summary

Astral built tar-codec as a ground-up Rust tar parser for uv, prioritizing security against parser differentials while parsing source distributions roughly twice as fast as astral-tokio-tar.

  • Starting with uv 0.131, tar-codec parses source distributions; uv previously used astral-tokio-tar for tar parsing and creation.
  • Security reports prompted Astral to find archives that differentially expose contents to uv, pip, and other tooling, including archives that appear safe to package indexes.
  • Astral judged the tokio-tar family too lenient to constrain reliably and its architecture unsuitable for the desired parsing performance.
  • The article explains V7, UStar, pax, and GNU tar, whose format variations and permissive padding create parsing complexity and room for unexpected data.
  • The text describes tar-codec's motivation and tar-format background, but does not include implementation details of the parser itself.

#rust #tar #uv #software supply chain security

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 89, latest observation ; +88 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 15, latest observation ; +15 over observed period since

Aliases

SourceExternal IDURL
Lobstersq7arzyhttps://astral.sh/blog/tar-codec Read discussion