Files

45 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2025-09-24 20:47:21 +02:00
[![Crates.io](https://img.shields.io/crates/v/uu_tar.svg)](https://crates.io/crates/uu_tar)
2025-02-01 18:07:27 +01:00
[![Discord](https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat)](https://discord.gg/wQVJbvJ)
2025-09-24 20:47:21 +02:00
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/uutils/tar/blob/main/LICENSE)
[![dependency status](https://deps.rs/repo/github/uutils/tar/status.svg)](https://deps.rs/repo/github/uutils/tar)
2025-02-01 18:07:27 +01:00
2025-09-24 20:47:21 +02:00
[![CodeCov](https://codecov.io/gh/uutils/tar/branch/master/graph/badge.svg)](https://codecov.io/gh/uutils/tar)
2026-06-04 19:44:08 +00:00
[![CodSpeed](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://app.codspeed.io/uutils/tar?utm_source=badge)
2025-02-01 18:07:27 +01:00
2025-09-24 20:47:21 +02:00
# tar
2025-02-01 18:07:27 +01:00
2025-09-24 20:47:21 +02:00
Rust reimplementation of the tar utility.
2025-02-01 18:07:27 +01:00
## Installation
We provide a [pre-built binary from main branch](https://github.com/uutils/tar/releases/tag/latest-commit).
To build tar from source, install Rust on your system. You can install Rust via [rustup](https://rustup.rs/).
2025-02-01 18:07:27 +01:00
Clone the repository and build the project using Cargo:
```bash
2025-09-24 20:47:21 +02:00
git clone https://github.com/uutils/tar.git
cd tar
2025-02-01 18:07:27 +01:00
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](tests/README.md) for comprehensive documentation.
```bash
# Run all tests
cargo test --all
# Run specific test
cargo test test_create_single_file
```
2025-02-01 18:07:27 +01:00
## License
2025-09-24 20:47:21 +02:00
tar is licensed under the MIT License - see the `LICENSE` file for details