[Pkg-rust-maintainers] d-0012-cargo-always-return-dev-channel.patch

Crystal Durham crystal.durham at canonical.com
Fri May 29 22:26:25 BST 2026


For what reason is the debian packaged Cargo patched to always consider
itself as a development version? If it's to avoid reporting itself as a
stable build despite being patched from upstream, I would like to suggest
reporting a channel of "debian" instead.

The fact that Cargo believes itself to be a development version means that
users of the cargo apt package can use unstable Cargo features without the
intended extra friction of using an unstable source channel (as this patch
is present in debian/stable). This feels like it goes against the ask that
patched versions using the same name as upstream only carry minor patches
for the purpose of adapting them to the packaging ecosystem.

My suggestion would be to gate this change in behavior behind an
environment variable (e.g. DEBIAN_ENABLE_UNSTABLE_CARGO) like is done with
RUSTC_BOOTSTRAP, setting that where unstable flags are used for packaging,
to avoid accidental reliance on unstable features slipping in.

Thanks, Crystal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20260529/6f0400f4/attachment.htm>


More information about the Pkg-rust-maintainers mailing list