🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #504

Bug#1150612: rust-rustls: Missing librust-rustls-0.23+default-dev provide

#504
From: kpcyrd
Date: Sun, 11 Oct 2026 16:00
55 lines
4274 bytes
On 10/11/26 1:56 PM, Jonas Smedegaard wrote:
> Quoting kpcyrd (2026-10-11 13:25:09)
>   
>> Please add a +default provides so dependency resolution works for
>> crates that depend on rustls with default features, and no other
>> feature enabled.
> 
> It is true that the Debian packaging of rustls does not provide the
> "default" feature.
> 
> I will be happy to offer that feature when in fact it is available.

I'm not sure I understand, depending on rustls with default features is 
perfectly valid:

cargo new test123 && cd test123 && echo 'rustls = "0.23"' >> Cargo.toml && cargo 
build

> I will not, however, claim it being available before it truly is, in
> the contained crate.
> 
> If your package succeeds with a fake declaration, then please consider
> adjusting your package, as that is proof that your package does not, in
> fact, require "default" from rustls.

I've tried to work around this by turning on a feature, but this doesn't turn 
off the `default` feature dependency:

```
Depends:
  ${misc:Depends},
  librust-base64-0.22+default-dev,
  librust-log-0.4+default-dev,
  librust-native-tls-0.2+default-dev,
  librust-openssl-0.10+default-dev (>= 0.10.29),
  librust-openssl-0.10+vendored-dev (>= 0.10.29),
  librust-openssl-probe-0.2+default-dev,
  librust-punycode-0.4+default-dev (>= 0.4.1),
  librust-rustls-0.23+default-dev (>= 0.23.35),
  librust-rustls-0.23+ring-dev (>= 0.23.35),
  librust-rustls-platform-verifier-0.6+default-dev (>= 0.6.2),
  librust-serde-1+default-dev (>= 1.0.101),
  librust-serde-json-1+default-dev,
  librust-urlencoding-2+default-dev (>= 2.1.0)
```

The default feature set is always available in Rust and always enabled unless 
`default-features = false` is added:

https://doc.rust-lang.org/cargo/reference/features.html#the-default-feature

You are allowed to make opinionated choices like "the default feature set should 
use the ring feature instead of the aws-lc-sys feature", that would be better 
than making every package patch in `default-features = false` and come up with 
their own sensible list of rustls default features.
Technical Details
Message-ID: <NN47T-4Unf-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NMZUB-4Sfw-5@gated-at.bofh.it> <NN0nE-4Sq7-35@gated-at.bofh.it> <NMZUB-4Sfw-5@gated-at.bofh.it> <NN0nE-4Sq7-35@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: kpcyrd <kpcyrd@archlinux.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150612: rust-rustls: Missing librust-rustls-0.23+default-dev provide
Date: Sun, 11 Oct 2026 18:00:01 +0200
Message-ID: <NN47T-4Unf-11@gated-at.bofh.it>
References: <NMZUB-4Sfw-5@gated-at.bofh.it> <NN0nE-4Sq7-35@gated-at.bofh.it> <NMZUB-4Sfw-5@gated-at.bofh.it> <NN0nE-4Sq7-35@gated-at.bofh.it>
X-Original-To: Jonas Smedegaard <jonas@jones.dk>, 1150612@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Oct 11 15:59:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: kpcyrd <kpcyrd@archlinux.org>, 1150612@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: dr@jones.dk
X-Debian-Pr-Message: followup 1150612
X-Debian-Pr-Package: rust-rustls
X-Debian-Pr-Source: rust-rustls
Authentication-Results: mail.archlinux.org;
	auth=pass smtp.auth=kpcyrd smtp.mailfrom=kpcyrd@archlinux.org
MIME-Version: 1.0
Content-Language: de-DE, en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996265
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 55
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 11 Oct 2026 17:57:42 +0200
X-Original-Message-ID: <9195ddf8-039f-4fe4-a75d-01a367fb0191@archlinux.org>
X-Original-References: <ba695253-6b61-409c-a757-a5fa7ce77407@archlinux.org> <179171976764.860370.9022948676847159300@cairon.jones.dk> <ba695253-6b61-409c-a757-a5fa7ce77407@archlinux.org> <179171976764.860370.9022948676847159300@cairon.jones.dk>