+1 maintenance report

Steve Langasek steve.langasek at ubuntu.com
Fri Jul 28 18:36:22 UTC 2023


On Fri, Jul 28, 2023 at 05:43:36PM +0100, Robie Basak wrote:
> # rust-block-padding

> I didn't really make sense of this. How is a build of
> rust-block-buffer-0.9 resulting in a binary
> librust-block-buffer-0.9+block-padding-dev that has a versioned binary
> dependency on librust-block-padding-0.2+default-dev without a build-dep
> on something from rust-block-padding? I could dig deeper but I moved on
> for now.

Rust packaging uses helpers that autogenerate Debian package metadata from
the upstream crate metadata.  This includes declaring dependencies on
various other crates that are used when building against this package
(possibly in an optional non-default configuration), that are not
necessarily needed at build time (since the binary package is a -dev package
that basically contains rust source files, the runtime deps don't
necessarily need to be present as build-time deps).

So this is a very common pattern for rust packages.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20230728/3b26086d/attachment.sig>


More information about the ubuntu-devel mailing list