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.2.tar.gz (4.7 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.2-cp310-abi3-win_amd64.whl (967.9 kB view details)

Uploaded CPython 3.10+Windows x86-64

rars-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

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

rars-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

rars-0.5.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (2.3 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.2.tar.gz.

File metadata

  • Download URL: rars-0.5.2.tar.gz
  • Upload date:
  • Size: 4.7 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.2.tar.gz
Algorithm Hash digest
SHA256 a04058090edf1a81f85b76bfa759da316f0a703d6d661c34fa35189dea8c7cb8
MD5 c700bcdcc047c04638cf4d871b349d55
BLAKE2b-256 baa9388be1e75177e0ddd73f25f059c1991fbbd7ccabeea71f1136f820818b55

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.2.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.2-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: rars-0.5.2-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 967.9 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.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d8b464acad8422697c592aa37debbecf94737c8bac6e7b26b1b1004c47b4867a
MD5 dc36cf245e280069898e3439101c815c
BLAKE2b-256 dbfbf08c61e670b441ecbf168f59853b8285fbec938d1db2a8b20e680911ff5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.2-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.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rars-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b537091b8d2e7192c77210d1b30b81f7d188089582abab30f0982743e9659c5f
MD5 03b0a8743fadb4a660e23f0bc84e2c31
BLAKE2b-256 e3d564750b47eaa13427af82b25053054b78555e936928a18f3b139781d7c33f

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.2-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.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rars-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 690c0dcb306b46d48f7e3c33557961d682bc942905e2db70a7f41e75e4703092
MD5 a2976bddbed5c222146e4eb1a6393d82
BLAKE2b-256 91c7dbd7c1caa039afb31b8d30592544c891b5225e1e60d3fa66bf70d8987449

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.2-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.2-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.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 99baa8c1550d65811bdf9ff796e6fe75bf20eef20f026ad10f66cf2b3d2fe6a4
MD5 46a693ee6f1b026d6e548053ac5ecad7
BLAKE2b-256 1d09ef7a6ac0fcac2343954c927e4cd9c18b9f8c8b6e7f5bd22069e9359a2e33

See more details on using hashes here.

Provenance

The following attestation bundles were made for rars-0.5.2-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

This release

0.5.2 This release

5 files

0.5.1

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