Repository navigation
Extraction now runs on one engine in the library, the CLI, Python and npm, and treats links and unsafe names the way unrar does. --symlinks=inside|all|skip matches unrar's -ol, -ola and -ol-, and unrars takes those switches too. File and directory modes are restored, and --ignore-attributes (unrars -ai) turns that off. Rust callers get Archive::extract_to_dir and extract_volumes_to_dir, plus a pull-style member reader. Legacy filename encodings (CP932, CP936, CP949, CP950, Windows-1251) can be detected.
RAR 5 compresses faster. Level 1 is now a greedy fast level, the old level 1 is now level 2, and the old level 2 is gone. Level 5 is 2.2x faster on binaries and keeps 86% of its size gain over level 4. RAR 5 solid archives decode ahead of their writes. RAR 2.9 streams binary members over 16 MiB instead of holding them in memory. With --max-memory, RAR 5 writes the same archive as without it, and directory trees at level 3 and above no longer fail.
Behaviour changes:
- A member name that would leave the output directory (
../x,/abs/x,a/../../x) is rewritten asunrarrewrites it, instead of being refused.unrarsreports one it still can't create as "Cannot create" with exit code 9, not a checksum error. - On Windows, a member name Windows can't create (
<>:"|?*, control characters, reserved names such asCONorNUL) is renamed instead of failing. - Python's
extractandextractallrestore file and directory modes by default. Passrestore_modes=Falseto keep the old behaviour. - Python's
RarBuilder.add(directory)stores the directory entries, empty ones included. extract_toand the other calls that hand members to your ownopencallback skip RAR 1.5–4 symbolic links, as they already did for RAR 5. Before, such a link reachedopenas a file whose contents were its target.rars aprintsFound N entrieswithout the byte total. A missing or unreadable input now readswhile adding entry 'name': ....
What's Changed
- release: install uv on the host for the Linux wheels by @bitplane in #630
- cli: keep the created-modes table to Unix by @bitplane in #629
- test: give unit-test archives a fixed producer version by @burntout76 in #631
- release: run the Windows wheel tests in UTC by @bitplane in #635
- Test the link checks coverage showed nothing reaching by @burntout76 in #633
- Release: run the gate as parallel jobs, and dry-run releases on their PRs by @burntout76 in #637
- RAR 5: raise the one-thread default budget to what a level 5 job holds by @burntout76 in #638
- release: publish the GitHub Release on a re-run too by @bitplane in #640
- Windows: take legacy RAR time offsets from the system time zone by @burntout76 in #639
- docs: drop history and single-run figures from the remaining comments by @bitplane in #644
- Test every writer's memory charge against what it allocates by @burntout76 in #643
- RAR 2.9: size a member parse's finder to its input by @burntout76 in #645
- rar50: decode solid chains ahead and overlap their writes by @mnightingale in #646
- RAR 2.9: stream binary members past 16 MiB by @burntout76 in #658
- rar29: charge PPMd models only to members that build one by @burntout76 in #659
- extract_to: leave out RAR 1.5-4 symbolic links, as RAR 5 does by @burntout76 in #664
- AGENTS.md: clean room, unsafe, rayon and thread identity by @bitplane in #666
- Add a base directory option for rars add by @bitplane in #667
- Flush member writers after verification by @bitplane in #668
- Add CJK codepages for legacy RAR names by @bitplane in #671
- Guarantee bounded reads when extracting one non-solid RAR member by @bitplane in #672
- Add a pull-style archive member reader and sequential iterator by @bitplane in #675
- Price RAR 2.0 coding workspace by parser and block size by @bitplane in #676
- Restore the RAR 2.0 solid compression ladder by @bitplane in #674
- Detect legacy archive filename encodings by @bitplane in #677
- Fix literal-run and repeat regressions in the compression ladder by @bitplane in #679
- Make the published rars crate packageable without a repack by @bitplane in #681
- rar29: charge a solid chain's history and the copies coded against it by @burntout76 in #673
- Test: flush coverage carried over from #670 by @burntout76 in #678
- Test: excuse RAR 2.0 level 1's borderline charge at four threads by @burntout76 in #682
- Add Archive::extract_to_dir and extract_volumes_to_dir by @burntout76 in #686
- Share the chain candidate walk for RAR 5 and RAR 2.0 by @bitplane in #687
- Fit RAR 5 dictionaries to the full block-job charge by @bitplane in #688
- rar29: give the PPMd escape search's finder more heads by @burntout76 in #689
- Read individual volume members directly and report when volumes are finished by @bitplane in #691
- cli: generate man pages and shell completions with
just manpagesby @burntout76 in #694 - rar29: run the filter search's trial encodes side by side by @burntout76 in #696
- Charge RAR 5/7 writers for the jobs they hold by @bitplane in #695
- Charge RAR 5/7 single-pass tree jobs from their workspace by @bitplane in #698
- streaming: keep small spools in memory, charged to the writer budget by @burntout76 in #697
- Spools: let a growing wave reclaim held spools too by @burntout76 in #699
- Drop libc unless the write feature is on by @bgermann in #700
- rar50: hand volume members on as they finish, encrypted as written by @burntout76 in #701
- rar50: seed overlapping runs' trees from one shared tree by @burntout76 in #702
- rar50: pack large members into volumes and read recovery records back by @burntout76 in #707
- rar29: build the writer's memory charges from their parts by @burntout76 in #708
- rar50: decode eight-bit literals seven at a time by @mnightingale in #710
- rar29: walk candidate chains through walk_chain by @burntout76 in #709
- rar50: keep small recovery volumes within the volume size by @burntout76 in #711
- RAR 5 level 5: search filter pieces and seed lone trees on idle threads by @burntout76 in #712
- rar29: decode literal runs through a cached bit reader by @mnightingale in #714
- rar50: start level 5 jobs as their trees come in, and cut the tail off by @burntout76 in #713
- filter_search: forward prices_calls_alone through SharedReporting by @burntout76 in #716
- charge_covers_peak: add an input the LZ parse codes a literal at a time by @burntout76 in #720
- rar29: price a reduced search's side encodes with the finder it builds by @burntout76 in #721
- rar50: tighten FiltersAuto charges at fitted dictionaries by @burntout76 in #725
- rar29: charge a piece search below level 5 for its longest encode by @burntout76 in #724
- rar29: try a chain's PPMd sizes one model at a time under a short budget by @burntout76 in #723
- rar50: admit a wave's jobs for the history windows they grow under a ledger by @burntout76 in #727
- rar50: admit single-pass block jobs for what one pass holds by @burntout76 in #729
- rar29: charge a streamed member's piece searches for their longest encode by @burntout76 in #732
- rar29: charge a streamed segment's search and coding in turn by @burntout76 in #733
- cli: Publish verified outputs through one in-order publisher by @mnightingale in #742
- cli: Publish settled outputs on a thread of their own through an in-order queue by @mnightingale in #746
- rar50: judge filters by byte statistics at levels 1 and 2 by @burntout76 in #743
- rar50: a greedy fast rung at level 1 by @burntout76 in #745
- rar50: leave noise out of the match search by @burntout76 in #747
- python: Extract RAR 5 archives through settled extraction by @mnightingale in #750
- python: Publish extracted outputs through the in-order publish queue by @mnightingale in #751
- cli: Publish legacy and unsettled outputs on the publish thread by @mnightingale in #752
- rar50: retune m5 effort: 2.2x faster on binary, keeps 86% of its gain by @burntout76 in #748
- rar50: search four candidates at level 1 by @burntout76 in #749
- python: Create staged files where they are first written by @mnightingale in #753
- rar50: speed up match_length, the tree finder and the optimal parse by @burntout76 in #754
- Read packed bytes through one reader type per format by @bitplane in #757
- Charge reservations only for their capacity by @bitplane in #758
- Give limited readers the same decode paths as unlimited ones by @bitplane in #759
- rar50: smaller tree finders and fewer of them at once by @burntout76 in #763
- Compile every codec once, with one workspace budget type by @bitplane in #765
- extract: share the extracted-entry mode mapping from the library by @mnightingale in #766
- rar50: charge trees for the link width they allocate by @burntout76 in #767
- Compile the filter search once per format by @bitplane in #769
- Share test data generators, sinks, vint readers and fixture paths by @bitplane in #771
- Turn the CLI and RAR 5 writer round-trip tests into tables by @bitplane in #772
- Drop test copies the tables cover, per-level option pins and unrun ignored tests by @bitplane in #773
- Drop the Budget trait now Limited is the only budget by @bitplane in #775
- Run RAR 5 writers under a ceiling on the one scheduler by @bitplane in #779
- Gate test imports so every feature set lints clean by @bitplane in #780
- Stop charging RAR 5 writer bookkeeping to the memory limits by @bitplane in #781
- Check that writer charges cover what they hold, not their exact sizes by @bitplane in #782
- extract: restore file and directory modes in directory extraction by @mnightingale in #783
- Take extraction callbacks as dyn below the public API by @bitplane in #784
- Walk split members' volumes with one SplitWalk for RAR 1.5 to 5 by @bitplane in #787
- rar50: seed overlapping runs from one tree at many threads by @burntout76 in #788
- Walk RAR 1.5 to 4 headers once, reading a slice through the seekable walker by @bitplane in #789
- Walk RAR 1.3 headers once, reading a slice through the seekable walker by @bitplane in #790
- Share the salvage resync state between RAR 1.5 to 4 and RAR 5 by @bitplane in #791
- Run independent members under one admission, sharing a limited workspace by @bitplane in #792
- Choose the reader workspace once, in ArchiveReadOptions::reader_allowance by @bitplane in #793
- Show the buffered decode limit hint for split members too by @bitplane in #794
- extract: option to leave symbolic links out in directory extraction by @mnightingale in #795
- python: restore_modes and skip_symlinks on extract and extractall by @mnightingale in #796
- npm: restoreModes and skipSymlinks on extract and extractAll by @mnightingale in #797
- cli: --ignore-attributes and --skip-symlinks; unrars -ai by @mnightingale in #798
- rar50: link errors on the volume walk reach the member error handler by @mnightingale in #799
- rars: one routing function for directory extraction by @mnightingale in #800
- rars: one settled extraction entry point for every family by @mnightingale in #801
- rars: DirOutputs speaks only the settle protocol by @mnightingale in #802
- cli: the extraction engine speaks only the settle protocol by @mnightingale in #803
- rars: the CLI's extraction engine moves into rars by @mnightingale in #804
- rars: the library and Python extract through the one engine by @mnightingale in #805
- rars, npm: link policies and unsafe names as unrar has them by @mnightingale in #806
- npm: number renames as the core does, and one extraction behaviour table for Python and npm by @mnightingale in #807
- rars: one volume-set walk in the extraction engine by @mnightingale in #808
- volume_name: one home for writing and reading volume names by @bitplane in #809
- Share one error-context walk between the library and its bindings by @bitplane in #810
- rars: refuse a case alias under Never alike at every thread count by @mnightingale in #811
- rars a: write through rars::Builder by @bitplane in #812
- rars-python: write volume sets through Builder::write_volumes_to_path by @bitplane in #814
- rar50: compare a tree node's next eight bytes as one word by @burntout76 in #813
- npm writer options and wasm output names through the library (#768) by @bitplane in #815
- rars: look at destinations without the publish lock by @mnightingale in #819
- rars: rename member names Windows can't create instead of refusing them by @mnightingale in #818
- rars: read RAR 5 Windows symlink and junction targets as Windows paths by @mnightingale in #820
- rar50: trim per-run and per-position work in the optimal parse by @burntout76 in #816
- rar50: hash shares find their positions without a branch and share noise verdicts by @burntout76 in #817
- rars: gate unix-only test helpers so Windows builds without warnings by @mnightingale in #821
- rar50: hand a run's tree on to the member's next job at one thread by @burntout76 in #826
- rars: fix Windows FILETIME formatting panic and timestamp test resolution by @mnightingale in #830
- rars-cli: make the directory-mtime test zone-independent by @mnightingale in #831
- rar15_40: measure the streaming test's output from the file, not its directory entry by @mnightingale in #832
- rars: pin the Windows refusal of a directory over a staged file by @mnightingale in #833
- rar50: test a share's 64 positions with AVX2 when the CPU has it by @burntout76 in #828
- rar50: read runs straight into the window by @burntout76 in #839
- rar50: share mixed-stride noise verdicts and judge ahead in NoiseScan by @burntout76 in #840
- rar50 scratch: a stream that ends inside a filter is truncated by @burntout76 in #842
- rar50: hand the tree on in solid chains at one thread by @burntout76 in #841
- tests: keep Windows scratch roots free of the verbatim prefix by @mnightingale in #834
- rars a and repair: walk inputs and publish files with the library's code by @bitplane in #846
- rar50 salvage: sweep cuts and flips across the last block on every reader path by @bitplane in #848
- memory tests: count every realloc as a move; reserve RAR 2.0's match list by @burntout76 in #847
- rar50: keep the optimal parse's buffers across a run's blocks by @burntout76 in #850
- rar13: pack each member once, storing it if the check fails by @bitplane in #856
- rar50: hand the tree on across a member's end in solid chains by @burntout76 in #858
- rar50: reserve the tree's run bound for a block's matches up front by @bitplane in #859
- charge_covers_peak: measure each cell's resident memory in a process of its own by @bitplane in #860
- Release v0.13.2 by @bitplane in #862
Full Changelog: v0.13.1...v0.13.2