rust-rars 0.13.0+ds-1
Package Information
| Description | High-level Rust API for reading, extracting, writing, and repairing RAR archives - Rust source code Source code for Debianized Rust crate "rars" |
|---|---|
| Maintainer | Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> |
| Changed By | Bastian Germann <bage@debian.org> |
| Sponsor | bage@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/rars] (browse) |
| Tracker | https://tracker.debian.org/pkg/rust-rars |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Distribution | unstable |
|---|---|
| Date | Fri, 20 Nov 2026 16:06:57 +0100 |
| Source | rust-rars |
| Version | 0.13.0+ds-1 |
| Changed-By | Bastian Germann <bage@debian.org> |
| Architecture | source amd64 |
Changelog
rust-rars (0.13.0+ds-1) unstable; urgency=medium . * Team upload. * Package rars 0.13.0 from crates.io using debcargo 2.8.4
.dsc
| Section | rust |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | librust-rars-dev deb rust optional arch=any |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rars
Upstream-Contact: https://github.com/bitplane/rars/issues
Source: https://github.com/bitplane/rars
Files-Excluded:
tests/fixtures/rar13
Comment:
Exclude binary files that have propietary provenance.
Files: *
Copyright: 2026 Gareth Davidson @bitplane
License: Apache-2.0
Comment: libarchive
Files:
tests/fixtures/rar15_40/encrypted/per_file_rar4_libarchive_mixed.rar
tests/fixtures/rar50/wild/hardlink.rar
tests/fixtures/rar50/wild/symlink.rar
tests/fixtures/rar50/wild/invalid_hash_valid_htime_exfld.rar
tests/fixtures/rar50/wild/libarchive_*.rar
Copyright:
Copyright (c) 2003-2018 <author(s)>
License: BSD-2-Clause-pos-unchanged
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer
in this position and unchanged.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Comment: Compiled zones from the IANA time zone database
Files:
tests/fixtures/tz/*
Copyright: The Internet Assigned Numbers Authority (IANA)
License: public-domain
This database is in the public domain.
Comment: rarfile
Files:
tests/fixtures/rar15_40/rar202/comment_nopsw.rar
tests/fixtures/rar15_40/rar202/comment_psw.rar
tests/fixtures/rar15_40/wild/rarfile_unix_owner.rar
tests/fixtures/rar50/wild/rarfile_hlink.rar
tests/fixtures/rar50/wild/rarfile_solid.rar
tests/fixtures/rar50/wild/rarfile_solid_qo.rar
Copyright:
Copyright (c) 2005-2026 Marko Kreen <markokr@gmail.com>
License: ISC
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Comment: node-unrar-js
Files:
tests/fixtures/rar15_40/node_unrar_js/with_comment.rar
tests/fixtures/rar15_40/encrypted/header_enc_1234.rar
Copyright:
Copyright (c) 2017 Jianrong Yu.
License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Comment: rar-test-files
Files:
tests/fixtures/rar15_40/ppmd/ppmd_lz_repeat_rar3.cbr
Copyright:
Stephan Sokolow has waived all copyright and related or neighbouring rights
to RAR Test Files under the Creative Commons CC0 1.0 Universal public domain
dedication: <https://creativecommons.org/publicdomain/zero/1.0/>.
License: CC0-1.0
Debian systems provide the Apache 2.0 license in
/usr/share/common-licenses/CC0-1.0
Files: debian/*
Copyright:
2026 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
2026 Bastian Germann <bage@debian.org>
License: Apache-2.0
License: Apache-2.0
Debian systems provide the Apache 2.0 license in
/usr/share/common-licenses/Apache-2.0
DFSG Assistant LLM REVIEW 0 blocker, 1 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for rust-rars version 0.13.0+ds-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: No
- Issues: 0 blocker, 1 important, 2 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: 213 found, 4 not mentioned in this report (160 not listed by the scan, so not checked)
Licensing
Licensing is DFSG-compliant. The crate is Apache-2.0 (Cargo.toml license = "Apache-2.0", COPYING, README) and Files: * names the upstream holder. The third-party test archives are permissive (libarchive BSD-2-Clause, rarfile ISC, node-unrar-js MIT, ssokolow CC0-1.0) and each set has its own stanza with the notice text reproduced; the IANA tz zones are public domain. The one genuinely non-free item, the RAR 1.402 self-extractor module in tests/fixtures/rar13/SFXSRC.EXE that tests/fixtures/LICENSES.md calls "RAR's own code", is removed by the +ds repack. debian/copyright is DEP-5 and matches the evidence; two minor inaccuracies are reported (the CC0 stanza's boilerplate names the wrong licence, and the Files-Excluded pattern does not cover the excluded tree).
Packaging
The packaging is the standard debcargo output and is otherwise sound: compat 13 with dh-sequence-cargo, Build-Depends-Arch with <!nocheck> on the Rust toolchain (all names resolve in unstable), a single librust-rars-dev package, autopkgtest entries for every feature combination, a clean unstable changelog at 0.13.0+ds-1, and no patches or maintainer scripts to get wrong. The repack is broken, though: tests/fixtures/rar13 is excluded from the +ds tarball while three shipped test targets still include_bytes! files from it, so the package's own autopkgtest cannot compile. The autopkgtest also names librust-criterion-0.8+cargo-bench-support-dev, which nothing in unstable or NEW provides.
Issues
important packaging 1. The +ds repack removes tests/fixtures/rar13 but three shipped test targets include_bytes! files from it, so the autopkgtest cannot compile ◂
- Files:
debian/debcargo.toml:3,debian/copyright:5-6,tests/rar13_fixtures.rs:9-42,tests/comment_options.rs:168,tests/reader_workspace.rs:220,debian/tests/control:1-3 - Basis: checked, in the package or with a reference tool
- Evidence:
excludes = ["tests/fixtures/rar13/**"](debian/debcargo.toml) andFiles-Excluded:\n tests/fixtures/rar13(debian/copyright) againstconst EMPTY: &[u8] = include_bytes!("fixtures/rar13/EMPTY.RAR");(tests/rar13_fixtures.rs:9),include_bytes!("fixtures/rar13/COMMENT.RAR")(tests/comment_options.rs:168) and&include_bytes!("fixtures/rar13/BIG80K.RAR")[..](tests/reader_workspace.rs:220). The directory is absent from the tree (globtests/fixtures/rar13/*returns nothing). - Problem: Every test target is compiled by the autopkgtest (
cargo-auto-test rars 0.13.0 --all-targets ...in debian/tests/control) and the three files above unconditionallyinclude_bytes!files that the repack deleted, so the test build fails with "couldn't read tests/fixtures/rar13/EMPTY.RAR" for every autopkgtest entry, default features included (#![cfg(feature = "write")], andwriteis a default feature). The build daemons will not catch it:sub testin /usr/share/perl5/Debian/Debhelper/Buildsystem/cargo.pm runscargo build, which does not build test targets. The shipped source package's test suite is therefore dead, and the package cannot migrate to testing. - Fix: Either narrow the exclusion to the one genuinely non-free file — tests/fixtures/LICENSES.md says only the 6.4 KiB self-extractor module in tests/fixtures/rar13/SFXSRC.EXE is "RAR's own code", the other rar13 archives are project-made — and patch out the SFXSRC assertions (tests/rar13_fixtures.rs:22 and their test), or keep the whole directory excluded and add a patch that drops the three include sites, the tests that use them and the
[[test]] name = "rar13_fixtures"entry from Cargo.toml. Either way, make the debcargoexcludeslist anddebian/copyright's Files-Excluded agree, and verify withcargo test --all-targetsin the unpacked source.
minor licensing 2. Files-Excluded pattern tests/fixtures/rar13 names only the directory path, so it excludes none of the files below it ◂
- Files:
debian/copyright:5-6 - Basis: checked, in the package or with a reference tool
- Evidence:
Files-Excluded:/tests/fixtures/rar13; debcargo.toml usestests/fixtures/rar13/**. - Problem: copyright-format 6.9 says the pattern syntax "does not distinguish file names from directory names" and that "*" matches slashes, so a bare
tests/fixtures/rar13names exactly that path and no file under it. As written the field documents an exclusion that its own syntax cannot express: anyone repacking with uscan from this copyright file would keep the whole rar13 directory (including SFXSRC.EXE) rather than drop it, and the field does not describe what debcargo actually excluded. - Fix: Use
tests/fixtures/rar13/*(which,*matching/, covers the whole subtree) and drop the typo in the Comment ("propietary").
minor licensing 3. The CC0-1.0 stanza says the Apache 2.0 licence is at /usr/share/common-licenses/CC0-1.0 ◂
- Files:
debian/copyright:106-110 - Basis: checked, in the package or with a reference tool
- Evidence:
License: CC0-1.0followed byDebian systems provide the Apache 2.0 license in//usr/share/common-licenses/CC0-1.0. - Problem: The stanza for the ssokolow fixture (tests/fixtures/rar15_40/ppmd/ppmd_lz_repeat_rar3.cbr) points at the right file but names the wrong licence for it: that path holds CC0 1.0 Universal, not Apache 2.0. The fixture is correctly identified by the short name and the text is reachable, so this is a documentation error rather than a licensing one, but debian/copyright misstates what it provides.
- Fix: Replace the two lines with
Debian systems provide the CC0 1.0 Universal license in//usr/share/common-licenses/CC0-1.0.
Verified ◂
- Full
debian/read: copyright (DEP-5, correct Format URL), control, rules, changelog, debcargo.toml, copyright.debcargo.hint, source/format, tests/control, upstream/metadata. No debian/patches, no maintainer scripts, no .install/.links/.docs files. - Non-test tree is 89 files under src/, 8 under benches/ plus Cargo.toml, Cargo.toml.orig, Cargo.lock, COPYING, README.md: all Apache-2.0 per Cargo.toml
license = "Apache-2.0"and COPYING; grep for Copyright/(C)/©/SPDX/Licensed under/Apache/GNU found no per-file notices and no third-party attributions in src/ or benches/. - tests/fixtures/LICENSES.md read in full: it declares everything not listed project-made under Apache-2.0 and identifies the third-party sets. Each of the 16 third-party fixture files (7 libarchive, 6 rarfile, 2 node-unrar-js, 1 ssokolow CC0, tz/*) is matched by the corresponding stanza in debian/copyright, with the notice text reproduced.
- Prescan built file
tests/fixtures/rar15_40/rarvm/solid_e8_filter_payload.exe: not a program built from this source. tests/fixtures/rar15_40/rarvm/README.md calls it "expected payload" and tests/rarvm_regressions.rs:62 reads it withstd::fs::read(fixture("solid_e8_filter_payload.exe"))to compare against decoded output; it is the project-written PE-shaped test image for the E8 filter, Apache-2.0. - Prescan archives in
tests/fixtures/golden/(stored_comment.rar,stored_comment_metadata.rar,stored_quick_open.rar,stored_rar50.rar,stored_rar70.rar,stored_recovery_1.rar,stored_recovery_5.rar,stored_recovery_10.rar,stored_recovery_50.rar,stored_volume_0.rar,stored_volume_1.rar,stored_volume_2.rar,stored_volume_3.rar): rars' own golden stored-output archives, compared byte-for-byte in tests/rar50_golden.rs:25,204,244; project-made, Apache-2.0, test data. - Prescan archives
tests/fixtures/rar15_40/empty_compressed_payload_rar30.rar,tests/fixtures/rar15_40/final_match_overrun/rar15.rar,rar20.rar,rar29.rar,tests/fixtures/rar15_40/rar154/audio_dos_names_unpack15.rar,audio_win_names_unpack15.rar,doc_154_best.rar,random.r00,random.r01: project-made archives over synthetic payloads (per the per-directory READMEs, e.g. rar154/README.md "Written by rars and validated by unrar"), Apache-2.0. - Prescan archives in
tests/fixtures/rar15_40/ppmd/(ppmd_escape_rar300.rar,ppmd_lorem_rar300.rar,ppmd_lz_match_rar300.rar,ppmd_mixed_rar300.rar,ppmd_solid_rar300.rar,ppmd_solid_restarts_rar393.rar): project-made RAR 3.x PPMd archives documented in ppmd/README.md, Apache-2.0;ppmd_lz_repeat_rar3.cbris the ssokolow CC0-1.0 file covered by debian/copyright:100-110. - Prescan archives in
tests/fixtures/rar15_40/encrypted/(header_enc_1234.rar,header_rar300_password.rar,header_rar420_password.rar,per_file_rar300_password.rar,per_file_rar4_libarchive_mixed.rar,rar4_encrypted_files_and_dirs.rar,rar4_header_encrypted.rar,rar4_mixed_visible_names_password.rar,rar4_password.rar,rar4_unicode_name_encrypted.rar): project-made per encrypted/README.md (some encoded with WinRAR under Wine over synthetic payloads), Apache-2.0, exceptheader_enc_1234.rar(node-unrar-js, MIT) andper_file_rar4_libarchive_mixed.rar(libarchive, BSD-2-Clause), each covered by its stanza. - Prescan archive
tests/fixtures/rar15_40/node_unrar_js/with_comment.rar: node-unrar-js file, MIT, stanza at debian/copyright:63-83. - Prescan binary data:
tests/fixtures/rar15_40/ppmd/binary_64k.binis a synthetic 64 KiB payload for the PPMd fixtures;tests/fixtures/rar15_40/rar300/rev_newstyle.part1.rev,rev_newstyle.part2.rev,rev_oldstyle.part4_2_1.rev,rev_oldstyle.part4_2_2.revandtests/fixtures/rar50/multivol_rev.part1.rev,multivol_rev.part2.revare RAR recovery-volume members of the multivolume fixture sets beside them;tests/fixtures/tz/America_New_York,Asia_Kolkata,Australia_Lord_Howe,Etc_GMT_5,Europe_Londonare compiled IANA time-zone files used as TZif test data (public domain, stanza at debian/copyright:44-51, sources in the tzdata package). - The 160 further archives the prescan did not list are all under tests/fixtures/ (rar15_40/{rar154,rar250,rar300,rar420,rarvm,rar202,rars_generated}, rar50, golden); I checked the directory listings and each directory's README/LICENSES.md entry and found no archive outside tests/fixtures and none installed by the binary package.
- Prescan author check found no unnamed holder; the holder strings match tests/fixtures/LICENSES.md and debian/copyright (Gareth Davidson; libarchive's
<author(s)>; Marko Kreen; Jianrong Yu; Stephan Sokolow/CC0; IANA; Debian Rust Maintainers and Bastian Germann for debian/*). - Build-dependency names checked with apt-cache: librust-aes (0.9.3), hmac (0.13.0), sha1 (0.11.0), sha2 (0.11.1), crc32fast (1.5.5), rayon (1.12.0), zeroize (1.9.1), getrandom (0.4.2), blake2s-simd (1.0.5), aho-corasick (1.1.5) all exist and provide the requested -dev feature packages, including the aes
zeroizeand getrandomwasm-jsfeatures; rustc is 1.98.1, satisfying>= 1.89. - Standards-Version 4.7.4 against Policy 4.7.4.1 (first two components equal): not an issue. debhelper compat 13 with dh-sequence-cargo;
<!nocheck>on the Rust toolchain is correct because dh-cargo's test step runscargo build, anddhskips the test step's targets under nocheck. - Cargo.toml dev-dependency
criterion = "0.8"is not a Build-Depends, which is right: dev-dependencies are only needed by the autopkgtest, not bycargo build. - debian/changelog: 0.13.0+ds-1, unstable, no bug closures, dated before today; matches the .dsc version and the +ds repack.
- uscan found the packaged version as the newest upstream release (upstream
0.13.0, packaged0.13.0+ds). - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0,CC0-1.0).
Not confirmed ◂
- The autopkgtest's
librust-criterion-0.8+cargo-bench-support-dev(debian/tests/control, every entry) exists nowhere in unstable or in the NEW queues as of 2026-11-20; unstable has librust-criterion-dev 0.5.1, which provides only the criterion-0.5 virtual packages. Until a criterion 0.8 crate is uploaded the autopkgtest dependencies cannot be satisfied, and even the benches cannot be built; whether rust-criterion 0.8 or a patch relaxing the dev-dependency to 0.5 is intended is not visible in the package. - I could not list the contents of rust-rars_0.13.0+ds.orig.tar.gz (the reader showed only the top-level rars-0.13.0/ entry), so tests/fixtures/rar13's absence is established from the unpacked tree, not directly from the tarball.
- Binary fixture contents were not opened (no RAR reader); their licences are judged from tests/fixtures/LICENSES.md and the per-directory READMEs, not inspected byte-for-byte.
- What these files are. The scan made before the review picked them out (built files, minified code, archives, licence wording that is rarely free, or licences that are not accepted), and this report does not mention them:
tests/fixtures/tz/Asia_Kolkata(binary data of a kind the scan does not recognise);tests/fixtures/tz/Australia_Lord_Howe(binary data of a kind the scan does not recognise);tests/fixtures/tz/Etc_GMT_5(binary data of a kind the scan does not recognise);tests/fixtures/tz/Europe_London(binary data of a kind the scan does not recognise).
Proposed changes ◂
None.
Uploader's response to the LLM review
The uploader was emailed about the review 1 hour ago.