A tar archive reading/writing library for async Rust.
See the codeastral-tokio-tar[!WARNING]
This library is in the process of being deprecated. We encourage external users of it to migrate away from it since non-security enhancements and bugfixes are unlikely to be prioritized. For (the majority of) users who need strict tar encoding and decoding, we recommend astral-codec as a potential alternative.
A tokio-based tar archive reader and writer.
This crate is a fork of edera-dev/tokio-tar,
which was a fork of vorot93/tokio-tar,
which was a fork of dignifiedquire/async-tar,
which is based on alexcrichton/tar-rs.
As compared to the async tar crates, this crate includes a variety of performance improvements
and missing patches from alexcrichton/tar-rs.
As compared to alexcrichton/tar-rs, this crate features
the following modifications:
preserve_permissions to false will avoid setting any permissions on extracted files.
In alexcrichton/tar-rs, setting preserve_permissions
to false will still set read, write, and execute permissions on extracted files, but will avoid
setting extended permissions (e.g., setuid, setgid, and sticky bits).allow_external_symlinks to false will avoid extracting symlinks that point outside the
unpack target. Operations that write outside the unpack directory are always denied; but by
default, symlinks that read outside the unpack directory are allowed.See the changelog for a more detailed list of changes.
Securely extracting an arbitrary (potentially malicious) archive to disk requires understanding the properties of the host OS and filesystem. Failing to account for how different OSes and filesystems process byte sequences in paths may allow an attacker to bypass application-level path filters by exploiting behaviors like:
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
932 followers · starred Jul 2026
1,320 followers · starred Feb 2025
1,007 followers · starred Oct 2025
54 followers · starred Oct 2025
A tar archive reading/writing library for async Rust.
See the codeastral-tokio-tar[!WARNING]
This library is in the process of being deprecated. We encourage external users of it to migrate away from it since non-security enhancements and bugfixes are unlikely to be prioritized. For (the majority of) users who need strict tar encoding and decoding, we recommend astral-codec as a potential alternative.
A tokio-based tar archive reader and writer.
This crate is a fork of edera-dev/tokio-tar,
which was a fork of vorot93/tokio-tar,
which was a fork of dignifiedquire/async-tar,
which is based on alexcrichton/tar-rs.
As compared to the async tar crates, this crate includes a variety of performance improvements
and missing patches from alexcrichton/tar-rs.
As compared to alexcrichton/tar-rs, this crate features
the following modifications:
preserve_permissions to false will avoid setting any permissions on extracted files.
In alexcrichton/tar-rs, setting preserve_permissions
to false will still set read, write, and execute permissions on extracted files, but will avoid
setting extended permissions (e.g., setuid, setgid, and sticky bits).allow_external_symlinks to false will avoid extracting symlinks that point outside the
unpack target. Operations that write outside the unpack directory are always denied; but by
default, symlinks that read outside the unpack directory are allowed.See the changelog for a more detailed list of changes.
Securely extracting an arbitrary (potentially malicious) archive to disk requires understanding the properties of the host OS and filesystem. Failing to account for how different OSes and filesystems process byte sequences in paths may allow an attacker to bypass application-level path filters by exploiting behaviors like:
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
932 followers · starred Jul 2026
1,320 followers · starred Feb 2025
1,007 followers · starred Oct 2025
54 followers · starred Oct 2025