mirror of
https://github.com/uutils/tar.git
synced 2026-10-16 02:48:09 -07:00
flate2-dev-dep
The root `tarapp` crate only uses flate2 in `tests/`; `uu_tar` declares its own flate2 dependency for `src/uu/tar/src/compression.rs`. Keep the workspace entry, just declare it where it is actually used.
tar
Rust reimplementation of the tar utility.
Installation
We provide a pre-built binary from main branch.
To build tar from source, install Rust on your system. You can install Rust via rustup.
Clone the repository and build the project using Cargo:
git clone https://github.com/uutils/tar.git
cd tar
cargo build --release
cargo run --release
Testing
The tar application has a focused testing philosophy that separates concerns between the application (CLI interface, error handling, user experience) and the underlying tar-rs library (archive format correctness, encoding, permissions).
See tests/README.md for comprehensive documentation.
# Run all tests
cargo test --all
# Run specific test
cargo test test_create_single_file
License
tar is licensed under the MIT License - see the LICENSE file for details
Languages
Rust
77.8%
Python
18.2%
Shell
4%