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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a04058090edf1a81f85b76bfa759da316f0a703d6d661c34fa35189dea8c7cb8
|
|
| MD5 |
c700bcdcc047c04638cf4d871b349d55
|
|
| BLAKE2b-256 |
baa9388be1e75177e0ddd73f25f059c1991fbbd7ccabeea71f1136f820818b55
|
Provenance
The following attestation bundles were made for rars-0.5.2.tar.gz:
Publisher:
release.yml on bitplane/rars
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rars-0.5.2.tar.gz -
Subject digest:
a04058090edf1a81f85b76bfa759da316f0a703d6d661c34fa35189dea8c7cb8 - Sigstore transparency entry: 2447327399
- Sigstore integration time:
-
Permalink:
bitplane/rars@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bitplane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8b464acad8422697c592aa37debbecf94737c8bac6e7b26b1b1004c47b4867a
|
|
| MD5 |
dc36cf245e280069898e3439101c815c
|
|
| BLAKE2b-256 |
dbfbf08c61e670b441ecbf168f59853b8285fbec938d1db2a8b20e680911ff5d
|
Provenance
The following attestation bundles were made for rars-0.5.2-cp310-abi3-win_amd64.whl:
Publisher:
release.yml on bitplane/rars
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rars-0.5.2-cp310-abi3-win_amd64.whl -
Subject digest:
d8b464acad8422697c592aa37debbecf94737c8bac6e7b26b1b1004c47b4867a - Sigstore transparency entry: 2447327535
- Sigstore integration time:
-
Permalink:
bitplane/rars@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bitplane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rars-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rars-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.5 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b537091b8d2e7192c77210d1b30b81f7d188089582abab30f0982743e9659c5f
|
|
| MD5 |
03b0a8743fadb4a660e23f0bc84e2c31
|
|
| BLAKE2b-256 |
e3d564750b47eaa13427af82b25053054b78555e936928a18f3b139781d7c33f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rars-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
b537091b8d2e7192c77210d1b30b81f7d188089582abab30f0982743e9659c5f - Sigstore transparency entry: 2447327778
- Sigstore integration time:
-
Permalink:
bitplane/rars@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bitplane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rars-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: rars-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
690c0dcb306b46d48f7e3c33557961d682bc942905e2db70a7f41e75e4703092
|
|
| MD5 |
a2976bddbed5c222146e4eb1a6393d82
|
|
| BLAKE2b-256 |
91c7dbd7c1caa039afb31b8d30592544c891b5225e1e60d3fa66bf70d8987449
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rars-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
690c0dcb306b46d48f7e3c33557961d682bc942905e2db70a7f41e75e4703092 - Sigstore transparency entry: 2447327679
- Sigstore integration time:
-
Permalink:
bitplane/rars@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bitplane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Trigger Event:
push
-
Statement type:
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
- Download URL: rars-0.5.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99baa8c1550d65811bdf9ff796e6fe75bf20eef20f026ad10f66cf2b3d2fe6a4
|
|
| MD5 |
46a693ee6f1b026d6e548053ac5ecad7
|
|
| BLAKE2b-256 |
1d09ef7a6ac0fcac2343954c927e4cd9c18b9f8c8b6e7f5bd22069e9359a2e33
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rars-0.5.2-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl -
Subject digest:
99baa8c1550d65811bdf9ff796e6fe75bf20eef20f026ad10f66cf2b3d2fe6a4 - Sigstore transparency entry: 2447327864
- Sigstore integration time:
-
Permalink:
bitplane/rars@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bitplane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@cf9b1f1ff350141a786bf0b386f7151a40f310c3 -
Trigger Event:
push
-
Statement type: