https://github.com/tomjakubowski/tardex
A Rust crate to access a file's contents and metadata in a tarball using its path.
https://github.com/tomjakubowski/tardex
rust tarball
Last synced: 4 months ago
JSON representation
A Rust crate to access a file's contents and metadata in a tarball using its path.
- Host: GitHub
- URL: https://github.com/tomjakubowski/tardex
- Owner: tomjakubowski
- License: apache-2.0
- Created: 2019-05-02T04:16:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T07:55:52.000Z (over 6 years ago)
- Last Synced: 2025-05-30T09:48:50.778Z (4 months ago)
- Topics: rust, tarball
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# tardex
A Rust crate to access a file's contents and metadata in a tarball using its
path. It's a "tarball index".## Why?
The [`tar`](https://lib.rs/crates/tar) crate provides an extensive API but
randomly accessing tarball entries by path is slightly awkward, because it:* requires mutable access to the `Archive`.
* requires accessing the entries in order each time, not randomly.Tardex is just a less featureful alternative interface tuned for a particular
use case, built atop it.## Anticipated features
* [ ] Support hard and symbolic link tarball entries
* [ ] Support directory tarball entries
* [ ] Support `Tardex`, which will require exclusive access to the
underlying reader (`File` is not `Clone`) when reading an Entry and therefore
will need a different API.## License
Tardex is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in Tardex by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.