DFSG NEW Queue

DFSG, Licensing & New Packages Team

rust-base64-codec 0.1.0+ds-1

Package Information

Descriptionbase64 encoder and decoder with SIMD and no_std - Rust source code

base64-codec provides a base64 encoder and decoder with SIMD and no_std.

Features * SIMD: AVX-512, AVX2 and SSSE3 on x86, NEON on aarch64, scalar anywhere else. * Fast: up to 4x faster than encodify and 34x faster than the base64 crate. * Two alphabets: the standard one for mail, the URL-safe one for OAuth and JWT tokens, padded or not. * MIME lines: encodes in lines of 76 characters ended by CRLF or LF, or in one unbroken run. * Lenient decoding: never fails, skips line breaks and blanks, reports other stray bytes. * I/O-free: encode and decode chunk by chunk into your own buffers. * Portable: no_std, CPU features installed once by the application through simd-cpu, the only dependency, the build target's baseline otherwise.

This package contains the source for the Rust crate base64-codec, for use with cargo.

MaintainerJonas Smedegaard <dr@jones.dk>
Changed ByJonas Smedegaard <dr@jones.dk>
Sponsorjs@debian.org
Distributionexperimental
Architectureall
VCSgit: https://salsa.debian.org/debian/rust-base64-codec.git (browse)
Closes#1155506
Trackerhttps://tracker.debian.org/pkg/rust-base64-codec
Uploaded4 hours ago

New Package Report

.changes◂
Architecturesource all
Distributionexperimental
DateFri, 27 Nov 2026 01:32:33 +0100
Sourcerust-base64-codec
Version0.1.0+ds-1
Changed-ByJonas Smedegaard <dr@jones.dk>
Changelog◂
rust-base64-codec (0.1.0+ds-1) experimental; urgency=low
 .
   * initial release;
     closes: bug#1155506
.dsc◂
Componentmain
Package-Listlibrust-base64-codec-dev deb rust optional arch=all
Sectionrust
Priorityoptional
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: base64-codec
Upstream-Contact: https://github.com/pimalaya/base64-codec/issues
Source: https://github.com/pimalaya/base64-codec
 .
 Repackaged, excluding any .git* files.
Files-Excluded:
 */.git*

Files: *
Copyright:
  2026  Clément DOUIN (soywod) <pimalaya.org@posteo.net>
License-Grant:
 This project is licensed under either of:
 .
 - [MIT license](LICENSE-MIT)
 - [Apache License, Version 2.0](LICENSE-APACHE)
License: Apache-2.0 or Expat
Reference:
 Cargo.toml
 LICENSE-APACHE
 LICENSE-MIT
 README.md

Files:
 debian/*
Copyright:
  2026  Jonas Smedegaard <dr@jones.dk>
License-Grant:
 This packaging is free software;
 you can redistribute it and/or modify it
 under the terms of the GNU General Public License
 as published by the Free Software Foundation;
 either version 3,
 or (at your option) any later version.
License: GPL-3+
Reference: debian/copyright

Files:
 debian/patches/*
Copyright:
  Jonas Smedegaard <dr@jones.dk>
License: Apache-2.0 or Expat
Reference:
 Cargo.toml
 LICENSE-APACHE
 LICENSE-MIT
 README.md
Comment:
 Patches commonly lack explicit copyright and license.
 For the cases where patches are copyrightable at all,
 copyright is assumed to be held by the author,
 and license is assumed to be the same as main upstream license.

License: Apache-2.0
Reference: /usr/share/common-licenses/Apache-2.0

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.

License: GPL-3+
Reference: /usr/share/common-licenses/GPL-3

DFSG Assistant LLM REVIEW 1 blocker, 1 important, 1 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 2 hours ago.

Report◂

DFSG NEW review for rust-base64-codec version 0.1.0+ds-1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: No
  • Packaging is of good quality: Yes
  • Issues: 1 blocker, 1 important, 1 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

debian/copyright is DEP-5 but is not accurate. The crate incorporates code and tables upstream credits to encodify (Stalwart Labs LLC), simdutf8 (Hans Kratz) and modp_b64 (Nick Galbreath, BSD-3-Clause); only the two pimalaya holders and the packager are named. The BSD-3-Clause terms and notice for the modp_b64-derived scalar tables appear nowhere in the package. The file also uses non-standard License-Grant and Reference fields, so the Apache-2.0 and GPL-3+ stanzas carry no licence text in a valid field, and lintian overrides hide that.

Packaging

Packaging is conventional and sound: compatible debhelper level 14 with dh-sequence-rust/dh-sequence-single-binary, a correct single librust--dev package with versioned Provides, three DEP-3 patches with clear purposes, autopkgtests for four feature combinations, current Standards-Version, correct Vcs- and upstream metadata fields. The declarative dependencies are resolvable from the archive or the NEW queue.

Issues

blocker licensing 1. Files: * wrongly states the whole crate is Apache-2.0/Expat though src/scalar.rs follows BSD-3-Clause modp_b64, and the BSD-3-Clause text and Nick Galbreath notice are missing ◂
  • Files: debian/copyright, ATTRIBUTION.md, src/scalar.rs:24-81
  • Basis: inferred from what was read, not seen directly
  • Evidence: ATTRIBUTION.md: "The scalar decode tables of [src/scalar.rs], each byte's sextet already in place for its position in the quantum so that four lookups joined give the quantum's bytes and flag a byte outside the alphabet, follow Nick Galbreath's modp_b64 (BSD-3-Clause, https://github.com/client9/stringencoders), as Chromium's base64 uses it." debian/copyright Files: * gives License: Apache-2.0 or Expat and names only Clément DOUIN.
  • Problem: Upstream itself attributes part of src/scalar.rs to modp_b64 under BSD-3-Clause, whose terms require the copyright notice and the list of conditions to be reproduced in source and binary redistributions. The package contains no BSD-3-Clause text and debian/copyright names neither the licence nor its holder. Policy 2.3 and 12.5 require a verbatim copy of every distribution licence, and this is also an inaccurate statement of the licensing of a shipped source file. BSD-3-Clause is DFSG-free and compatible with the rest, so this is a documentation defect, not a freedom defect.
  • Fix: Add Nick Galbreath's copyright and a BSD-3-clause stanza covering the modp_b64-derived material (usually src/scalar.rs, or the specific table code), including the full BSD-3-Clause text, and adjust the Files: * licence statement accordingly. If after checking upstream nothing is actually derived from modp_b64, say so in a Comment so the attribution is not left unaddressed.
important licensing 2. debian/copyright uses non-standard License-Grant/Reference fields, leaving Apache-2.0 and GPL-3+ without licence text; lintian overrides conceal it ◂
  • Files: debian/copyright:10-23, debian/copyright:27-35, debian/copyright:41-52, debian/copyright:60-68, debian/source/lintian-overrides
  • Basis: checked, in the package or with a reference tool
  • Evidence: copyright-format 1.0 §5.2: a Files stanza may contain only Files, Copyright, License and Comment; §6.7 requires the License field to contain the licence text or a pointer to /usr/share/common-licenses. The file instead writes License-Grant: and Reference:/usr/share/common-licenses/..., and debian/source/lintian-overrides suppresses missing-license-text-in-dep5-copyright Apache-2\.0 * and GPL-3\+ * with # License is in Reference field (see bug#786450).
  • Problem: License-Grant and Reference are not copyright-format 1.0 fields (they come from an old draft). Machine-readable consumers (sources.debian.org, archive licence scanning, cargo licence checks) ignore them, so the Apache-2.0 and GPL-3+ stanzas have no licence text or pointer in the field where the format requires it, and the lintian overrides intended to silence the resulting tags hide the defect rather than fixing it.
  • Fix: Move the pointer into the body of the License: field (e.g. License: Apache-2.0 followed by On Debian systems the full text is in /usr/share/common-licenses/Apache-2.0.), drop the License-Grant and Reference fields, and remove the corresponding overrides from debian/source/lintian-overrides.
minor licensing 3. Files: * does not name Stalwart Labs LLC or Hans Kratz for the encodify- and simdutf8-derived kernels ◂
  • Files: debian/copyright, ATTRIBUTION.md:7, ATTRIBUTION.md:24, src/avx2.rs:3, src/ssse3.rs:3, src/neon.rs:3, src/driver.rs
  • Basis: checked, in the package or with a reference tool
  • Evidence: ATTRIBUTION.md:7 Copyright 2026 Stalwart Labs LLC <hello@stalw.art>, Apache-2.0 OR MIT, https://github.com/stalwartlabs/encodify; ATTRIBUTION.md:24 Hans Kratz <hans@appfour.com>, MIT OR Apache-2.0, https://github.com/rusticstuff/simdutf8; src/avx2.rs:3 The SSSE3 kernels over 256-bit vectors, as encodify 1.0.2 has them. debian/copyright names only Clément DOUIN under Files: *.
  • Problem: The crate ships encodify's SSSE3/AVX2/NEON kernels and simdutf8's macro-stamped driver loops, so their authors hold copyright in shipped source, and Policy 2.3 requires a notice in debian/copyright only where the licence requires it and the binary package lacks a plain-text copy. Here the crate is offered under Apache-2.0 (Policy 2.3 footnote 5: Apache-2.0 is not considered to require copying all notices), and ATTRIBUTION.md, which carries both notices, is installed unchanged by dh-rust's cargo package step. Policy therefore does not require the holders in debian/copyright; the DFSG team still asks for a complete file, and the current Files: * copyright line is inaccurate as a statement of provenance.
  • Fix: Name Stalwart Labs LLC and Hans Kratz in a Files stanza covering the derived sources (or in a Comment), with years matching ATTRIBUTION.md.
Verified ◂
  • Read every file under debian/: control, rules, changelog, copyright, copyright_hints, copyright-check, gbp.conf, watch (not reviewed), upstream/metadata, source/format, source/lintian-overrides, tests/control, patches/series, patches/README and all three patches.
  • debian/copyright is DEP-5 with the canonical Format URL; the proposed replacement is not needed.
  • Upstream inventory (88 files) read or grepped with gitignore disabled; LICENSE-APACHE and LICENSE-MIT read in full and are Apache-2.0/Expat matching License: Apache-2.0 or Expat.
  • Prescan holder ATTRIBUTION.md:7 (Stalwart Labs LLC) is real and is reported with the other two derived-code holders; ATTRIBUTION.md is upstream's own attribution file, not a separate third-party work.
  • src/avx512.rs implements the Muła/Lemire published AVX-512 method; the papers are methods, not copied code, so no further holder is needed there.
  • cairn/verify.sh states it is vendored from github.com/pimalaya/cairn (same upstream organisation) and carries no separate copyright/licence notice; it is covered by Files: *.
  • No non-free wording (non-commercial, no-modification, field-of-use) anywhere in the tree; no built binaries, minified code or PDFs; Cargo.lock, flake.lock and deny.toml are text inputs, not built artifacts.
  • Patches create no third-party files (only Cargo.toml and README.md edits); all three carry DEP-3 headers with Description/Author/Forwarded/Last-Update, and 2002_older_base64.patch only relaxes a dev-dependency version as rust-team practice allows.
  • debhelper compat 14 via debhelper-compat; dh_gencontrol supplies relationship substvars, so the absent ${misc:Depends}/${shlibs:Depends} is not a fault; dh-sequence-rust (dh-rust 0.1.4) and dh-sequence-single-binary (debhelper 14.5) exist in the archive.
  • Dependencies: librust-base64-dev 0.22.1-3 satisfies (<< 0.24); librust-base64-simd-0.8-dev is provided by librust-base64-simd-dev 0.8.0-1+b1; librust-simd-cpu-0.1-dev is provided by rust-simd-cpu 0.1.0+ds-1, currently waiting in NEW for experimental (per apt-cache).
  • Standards-Version 4.7.4 matches the reviewing system's Policy 4.7.4.1 (first two components); source format is 3.0 (quilt); changelog version 0.1.0+ds-1 targeting experimental for an initial upload is sane and the closes: bug#1155506 form is parsed as a closure.
  • autopkgtest: four cargo-auto-test runs (all-features, default, no-default-features, alloc) with the dev-dependencies they need, no network/display/superuser assumptions.
  • uscan found the packaged version as the newest upstream release (upstream 0.1.0, packaged 0.1.0+ds).
  • Every pointer of debian/copyright to /usr/share/common-licenses names a file that is there (Apache-2.0, GPL-3).
Not confirmed ◂
  • The licence and copyright of cairn/verify.sh's source project (pimalaya/cairn) could not be checked offline; it carries no notice of its own and was treated as the same author's work under the crate licence.
  • Whether cargo package in the build environment installs ATTRIBUTION.md unchanged was inferred from dh-rust's description ("installs crate contents using cargo package"), not observed in a build.
Proposed changes ◂

None.

Uploader's response to the LLM review

Waiting for the uploader's response until , because the review found serious issues.

Back to Dashboard | View all reviews for this package