Article View: linux.debian.devel
Article #610Bug#1155036: ITP base64-light: A simple Base64 encoder and decoder library for Rust
From: Peter Pentchev
Date: Tue, 24 Nov 2026 17:50
Date: Tue, 24 Nov 2026 17:50
158 lines
8945 bytes
8945 bytes
--HhQsvZBb/EBzpJut Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 24, 2026 at 01:56:29PM -0300, Lucas Castro wrote: >=20 >=20 > Em 24/11/2026 13:47, Blair Nyktas escreveu: > > On Tue Nov 24, 2026 at 3:58 PM UTC, Lucas Castro wrote: > > > Hi, > > >=20 > > > Em 23/11/2026 17:49, kpcyrd escreveu: > > > > On 11/23/26 7:31 PM, Lucas Castro wrote: > > (...) > > > > > * Package name=C2=A0=C2=A0=C2=A0 : rust-base64_light > > (...) > > > > Do you intend to package this as a library or as a binary project? = :) For the library there's only 5 reverse dependencies, and as far as I can= tell it has about the same lightweight footprint as the data-encoding crat= e (both in the binary and in API complexity): > > >=20 > > > I'm working on another package that depends on it, so it's not someth= ing that I can change/patch easily, not recommend and so on. > >=20 > > Yes you can! We patch things in Debian fairly often, that's part of the > > work/fun. >=20 > in no moment I said it can't be done, it's not recommended. Patching isn'= t for fun, it's for required situation. Sometimes patches are not *required* to make things work in Debian, but are a good idea to make things simpler for Debian. I am not talking about this case specifically, but in general, a new package that duplicates some of the functionality of several existing ones will mean that Somebody(tm) has to maintain it, Somebody(tm) has to keep up with upstream releases, Somebody(tm) has to coordinate the upgrade of a dependency that will affect this package, too... So sometimes it is indeed a good idea to check whether changing a dependency might not be a better course. > If really required, would be required to coordinate with the upstream, wr= iting testing to ensure final binary/library works as intended. > Really necessary if the library not comply with DFSG, but not the case. Sometimes it may be a good idea to wait a little bit before packaging somet= hing, contact upstream and ask them if they would be willing to make some change = that, besides being easier for Debian packagers, might also possibly be better for upstream, too. Sometimes the upstream developers may simply not be aware of other implementations, or they may not be aware of the issues that packagers have to deal with. Of course, sometimes the upstream developer will reply saying "yeah, sure, I get your point, but here are a couple of reasons why I am not willing to change things", and some of those reasons might actually make sense for that particular project :) There may also be a middle ground that, admittedly, will mean a bit more work for the upstream developer, but would be easier for Debian ;) Especially for Rust, alternative dependencies via the "features" mechanism = are quite common. Of course, doing this "right" would mean that upstream agrees= to: - add support for another base64 implementation - make the newly-supported other base64 implementation the default - turn support for the current one into a feature - maintain both versions for the foreseeable future or until they decide th= at it is too much work and it is better to drop one of them :) Not saying this would be the best course, just mentioning it as a possibili= ty. > > > Intend to package all the package offer, someone might like the binar= y application too. > >=20 > > Have you read its code? Compared it to mainstream implementations > > (base64, base64ct)? What is it that this specific crate offers that the > > existing, more mainstream ones can't? Who would like the binary > > application, considering coreutils already provides better ones called > > base64(1) and basenc(1)? > >=20 > > >=20 > > > >=20 > > > > https://crates.io/crates/data-encoding > > > >=20 > > > > let encoded =3D data_encoding::BASE64.encode(bytes); > > >=20 > > > Thanks for recommendation, I'm not in upstream development process. > >=20 > > That's not about the upstream development process. That's about the > > process in which you judge the quality of code and work and decide if > > they are worth the effort, yours and others'. > >=20 > > > > For a Rust base64 implementation, the uutils project (packaged in D= ebian as rust-coreutils) has one. > > >=20 > > > There's others not in rust too. > >=20 > > There's a reason one thing is in Debian or is not. "I want it in" is not > > enough. It needs to be useful, which in part means to have irreplaceable > > value. Frankly I don't see this crate exhibit one. >=20 > I want it's not enough, that's true! But it's recommend to keep a 'fork' > upstream version just to replace things that you think that need to be pa= tched. See above. Sometimes it may be worth it asking the upstream authors in orde= r to avoid a fork. In general, talking to the upstream authors of packages you maintain from time to time is a good idea: it helps them gain respect for Debian, sometimes it opens the path for them to do you favors in the future, etc. Of course, the more packages a person (or a team) maintains, the harder it = is to have a good relationship with all the upstream authors :) > If you don't think it's. Just not be the one uploading, as mentioned in P= olicy. >=20 > >=20 > > > Thanks, > > >=20 > > > >=20 > > > > Sincerely, > > > > kpcyrd > >=20 >=20 --=20 --=20 Peter Pentchev roam@ringlet.net roam@debian.org peter@morpheusly.com PGP key: https://www.ringlet.net/roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 --HhQsvZBb/EBzpJut Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmsFzRwACgkQZR7vsCUn 3xNA0A/9GM754MfIsZDmZld2cs3lnyw03z6E1NcPpgM1qNmc/vvKco48bRZycB++ lHPiRXLis2xQfs6ojb+9/QXTAd1Tx3dBEN77PwEotaGy5dTWvCU8rz0ofVD7Y2g0 fM3QkmqgKPnqM3v1eNnpiIaURHTuSGNZJDaI56vkU7v0JEJodYwdTpcyFBssOqWI xsW4jdpkXQYej4zj5vszMncz813VmfGIb2u4c+NU+s0s60YlkwW7olNTpKLYxv9W NGWzE1zn+PHUOQsriwEwU0HI4RvmVYBAoMuVm0gl4b3YsjDO9Bca7XOyzzyD2qZq lIfxicdS1Ne3kGidkFVjgggUb0yaoFGnrLCKqtIar08OD+4E8y/WiMnsN37I7C8+ P22DtCdi8SFxxh85XJXNhvtP1oV+wk4iTD0TG42ga2nvOWYijEkfUocKQVnSjLJX N0lX3envCR6rosdl5M2mHL/1S5ETucA/e3Q+dpTkZY/vcLXjs7fHnYSauhRw08Ts Kefs2o7SNLuO0Ow+Vh1vqRAcX/pnL138lDRinEuUgnf77fYqleoZ4rLMKWvmOXSn kYGB8u+WCQtTFLVYWsgsX0RHg+xIdXNy5R013Mx1IR7pwBFuQPPiUvZAzadrtjf7 MoINVEdjAmHYiWT75AkXhDLeFQqlTaMnTxx7LfrqUTM/Rf43UMc= =PXwK -----END PGP SIGNATURE----- --HhQsvZBb/EBzpJut--
Technical Details
Message-ID:
<O32Ot-dUNL-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O2H7j-dIIZ-3@gated-at.bofh.it> <O2JiN-dK9m-9@gated-at.bofh.it> <O31fH-dU5E-3@gated-at.bofh.it> <O31Sp-dUjx-3@gated-at.bofh.it> <O3225-dUnv-1@gated-at.bofh.it> <O2H7j-dIIZ-3@gated-at.bofh.it> <O3225-dUnv-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Peter Pentchev <roam@ringlet.net> Newsgroups: linux.debian.bugs.dist,linux.debian.devel Subject: Bug#1155036: ITP base64-light: A simple Base64 encoder and decoder library for Rust Date: Tue, 24 Nov 2026 18:50:02 +0100 Message-ID: <O32Ot-dUNL-1@gated-at.bofh.it> References: <O2H7j-dIIZ-3@gated-at.bofh.it> <O2JiN-dK9m-9@gated-at.bofh.it> <O31fH-dU5E-3@gated-at.bofh.it> <O31Sp-dUjx-3@gated-at.bofh.it> <O3225-dUnv-1@gated-at.bofh.it> <O2H7j-dIIZ-3@gated-at.bofh.it> <O3225-dUnv-1@gated-at.bofh.it> X-Original-To: Lucas Castro <lucas@gnuabordo.com.br> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Nov 24 17:47:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: Peter Pentchev <roam@ringlet.net>, 1155036@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: wnpp@debian.org X-Debian-Pr-Message: followup 1155036 X-Debian-Pr-Package: wnpp MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HhQsvZBb/EBzpJut" Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004728 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 158 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Blair Nyktas <ncts@debian.org>, 1155036@bugs.debian.org, debian-devel@lists.debian.org, debian-rust@lists.debian.org X-Original-Date: Tue, 24 Nov 2026 19:45:04 +0200 X-Original-Message-ID: <awXNG6xQ9HXHSOQj@lighthouse.ringlet.net> X-Original-References: <17048282-129b-4c7f-9651-aa5313321818@gnuabordo.com.br> <f416c66c-42cd-4972-911a-7820c01e09ce@debian.org> <8e679f25-13a0-4eb8-be65-fdebb8251f30@gnuabordo.com.br> <DN3LE8NVMRST.37UQVDZWSQ01T@debian.org> <03bc4e83-49ec-4535-b7c0-75c8b5b4823f@gnuabordo.com.br> <17048282-129b-4c7f-9651-aa5313321818@gnuabordo.com.br> <03bc4e83-49ec-4535-b7c0-75c8b5b4823f@gnuabordo.com.br>