Skip to main content

rars

A Rust implementation of RAR.

Current Status

rars covers the RAR lineage from early RE~^ archives through RAR 7, compression and decompression. It's getting faster, and kinda works.

Rust API

Use the rars crate for Rust applications and libraries. Since 0.4, the lower-level rars-format, rars-codec, rars-crypto, rars-crc32, and rars-recovery crates are folded into rars; those standalone crates ended at 0.3.x. Applications should depend on rars, and command-line installs should use rars-cli.

CLI

Inspect, test, and extract archives:

rars info archive.rar
rars test archive.rar
rars x archive.rar out/

Create archives with specific RAR generation:

rars a --format rar29 archive.rar files...
rars a --format rar50 --solid --auto-filter archive.rar files...
rars a --format rar70 --store --volume-size 10m archive.part1.rar files...

The writer supports stored and compressed members, split volumes, passwords, header encryption where implemented, comments, RARVM filters, RAR5 quick-open records, and supported recovery records. Run rars --help for more info.

By default, --memory-limit is set to 256MB and the number of --threads is your core count. This might limit compression on machines with lots of CPU cores; experiment and override as required.

Python bindings

Python bindings are published to pypi, so you can pip install rars. To build locally, it's maturin develop.

Development

Run the test suite:

cargo test --workspace --all-targets

Generate a local coverage report:

rustup component add llvm-tools-preview
./scripts/coverage.py

The script prints a line-coverage summary, saves it to target/coverage/summary.txt, and writes HTML output to target/coverage/html/library/index.html and target/coverage/html/cli/index.html.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rars-0.5.1.tar.gz (4.6 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rars-0.5.1-cp310-abi3-win_amd64.whl (947.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

rars-0.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

rars-0.5.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (996.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

rars-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.0 MB view details)

Uploaded CPython 3.10+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file rars-0.5.1.tar.gz.

File metadata

  • Download URL: rars-0.5.1.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rars-0.5.1.tar.gz
Algorithm Hash digest
SHA256 9c9011e5d66edde1b688c0d9108626f2b4bd8faae8010d226a179c4946c66a9d
MD5 4f120d2196e1d2d7681951275371d5e5
BLAKE2b-256 25d1dd6a199d9926c022263f018dc1291deb91db80d3a21b7cf66e4f84057732

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.1.tar.gz:

Publisher: release.yml on bitplane/rars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rars-0.5.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: rars-0.5.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 947.4 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for rars-0.5.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2f625772d6ac2c16d219675ee54d1ea87e8ad83ac3ea02f8985f6ee3bd6b7997
MD5 d81251852a43073488df1bebe3c361a7
BLAKE2b-256 21719fe9397394f49bd66caaadd66bc4fb12e73f5b3e1739763580bf001b8e7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.1-cp310-abi3-win_amd64.whl:

Publisher: release.yml on bitplane/rars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rars-0.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rars-0.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fdcc7f22f28dd19de3424fa0231117f23461c157a031e927e72d283971a7112
MD5 390f554c68fa14d06c5537246e353054
BLAKE2b-256 7b3796e410eb7a35d0cb5040ce2ee0c050ad905cdcf86784a22df97590862731

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on bitplane/rars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rars-0.5.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rars-0.5.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8581ffa0b2bb814fbb69271937a4472144f6253827dfb7e89e4639ce60b52d6e
MD5 ee9fc39202b06eb698d9521c2378866f
BLAKE2b-256 f1704ea8fe7de9e585975a70d30f9543c7dbf8d492851bcb3bf0e291029f6f15

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on bitplane/rars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rars-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for rars-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4e266ea1c43de990def3e1291a8a2a72cab50ded850acc49d9964a1ce6fe9613
MD5 2962fcd66f0f288584ba172ecbe7a5bc
BLAKE2b-256 30045ed16ec7eddca1b189ec0c8c3e061fed56500a1732007b8818b042247de7

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release.yml on bitplane/rars

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.9.3

5 files

0.9.2

5 files

0.9.1

5 files

0.9.0

5 files

0.8.0

5 files

0.7.4

5 files

0.7.3

5 files

0.6.0

5 files

0.5.2

5 files

This release

0.5.1 This release

5 files

0.5.0

5 files

0.4.9

5 files

0.4.8

5 files

0.4.7

5 files

0.4.6

5 files

0.4.5

5 files

0.4.4

5 files

0.4.3

4 files

0.4.2

5 files

0.4.1

5 files

0.4.0

5 files

0.3.2

5 files

0.3.1

5 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page