On Fri, Nov 03, 2017 at 10:00:03PM +0100, Jonas Smedegaard wrote: > Package: dh-cargo > Version: 2 > Severity: normal > > dh-cargo installs into library packages everything in source package > except directories .git and debian. > > That is too much: .gitignore files or .travis.yml files make no sense to > install, and neither does .pc directory.
Very intentional and not a bug. I discussed this with the Debian Rust team when I was first creating dh-cargo, and the intent is for the code in /usr/share/cargo/registry to *exactly* match the source as shipped in crates.io, with no omissions. The directory registry mechanism is intended for providing sources that substitute for the upstream sources. (Among other things, I *have* encountered packages before that actually *used* .gitignore as part of a package build.) That said, upstream crates should not be shipping .pc directories, and if that happens, we should be reporting that upstream to get fixed. - Josh Triplett