open I, "debian/control" or die $!;
open O, ">debian/control.new" or die $!;
+our %need_features = qw(
+ env-logger +default
+ );
+
while (<I>) {
if (m{^\# debian/update-build-deps}i...m{^\S}) {
- next if m{^ +librust[-a-z0-9]+,?\s*$};
+ next if m{^ +librust[-+a-z0-9]+ \<!cargo-upstream\>,?\s*$};
if (m{^\S} && !m{^\#}i) {
local ($_);
open C, "Cargo.toml" or die $!;
my $p = $1;
next if m{path ?= ?\"};
$p =~ y/_/-/;
- print O " librust-$p-dev <!cargo-upstream>,\n" or die $!;
+ my $f = $need_features{$p} // '';
+ print O " librust-$p$f-dev <!cargo-upstream>,\n" or die $!;
}
C->error and die $!;
}