🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.devel
Article #611

Bug#1155036: ITP base64-light: A simple Base64 encoder and decoder library for Rust

#611
From: Lucas Castro
Date: Tue, 24 Nov 2026 18:10
119 lines
7791 bytes

Em 24/11/2026 14:45, Peter Pentchev escreveu:
> On Tue, Nov 24, 2026 at 01:56:29PM -0300, Lucas Castro wrote:
>>
>>
>> Em 24/11/2026 13:47, Blair Nyktas escreveu:
>>> On Tue Nov 24, 2026 at 3:58 PM UTC, Lucas Castro wrote:
>>>> Hi,
>>>>
>>>> Em 23/11/2026 17:49, kpcyrd escreveu:
>>>>> On 11/23/26 7:31 PM, Lucas Castro wrote:
>>> (...)
>>>>>> * Package name    : 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 crate (both in the binary and in API complexity):
>>>>
>>>> I'm working on another package that depends on it, so it's not something that I can change/patch easily, not recommend and so on.
>>>
>>> Yes you can! We patch things in Debian fairly often, that's part of the
>>> work/fun.
>>
>> 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, writing 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 something,
> 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 that
>    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 possibility.

Really appreciated the points, I'm aware of that and agree.

But not the first step for this time.

> 
>>>> Intend to package all the package offer, someone might like the binary application too.
>>>
>>> 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)?
>>>
>>>>
>>>>>
>>>>> https://crates.io/crates/data-encoding
>>>>>
>>>>> let encoded = data_encoding::BASE64.encode(bytes);
>>>>
>>>> Thanks for recommendation, I'm not in upstream development process.
>>>
>>> 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'.
>>>
>>>>> For a Rust base64 implementation, the uutils project (packaged in Debian as rust-coreutils) has one.
>>>>
>>>> There's others not in rust too.
>>>
>>> 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.
>>
>> 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 patched.
> 
> See above. Sometimes it may be worth it asking the upstream authors in order 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 :)

I second this.

> 
>> If you don't think it's. Just not be the one uploading, as mentioned in Policy.
>>
>>>
>>>> Thanks,
>>>>
>>>>>
>>>>> Sincerely,
>>>>> kpcyrd
>>>
>>
> 
Technical Details
Message-ID: <O337P-dV3L-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
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> <O32Ot-dUNL-1@gated-at.bofh.it> <O2H7j-dIIZ-3@gated-at.bofh.it> <O32Ot-dUNL-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Lucas Castro <lucas@gnuabordo.com.br>
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 19:10:01 +0100
Message-ID: <O337P-dV3L-3@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> <O32Ot-dUNL-1@gated-at.bofh.it> <O2H7j-dIIZ-3@gated-at.bofh.it> <O32Ot-dUNL-1@gated-at.bofh.it>
X-Original-To: Peter Pentchev <roam@ringlet.net>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 18:05:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Lucas Castro <lucas@gnuabordo.com.br>, 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
User-Agent: Mozilla Thunderbird
Content-Language: en-US, pt-BR
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004730
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 119
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 15:02:05 -0300
X-Original-Message-ID: <21505ece-f227-48cb-915c-8ec0ef66430d@gnuabordo.com.br>
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> <awXNG6xQ9HXHSOQj@lighthouse.ringlet.net> <17048282-129b-4c7f-9651-aa5313321818@gnuabordo.com.br> <awXNG6xQ9HXHSOQj@lighthouse.ringlet.net>