]> git.proxmox.com Git - dh-cargo.git/commitdiff
Pass `--cap-lints warn` in rustflags to avoid builds breaking when rustc adds new...
authorXimin Luo <infinity0@debian.org>
Mon, 18 Jun 2018 07:52:00 +0000 (00:52 -0700)
committerXimin Luo <infinity0@debian.org>
Mon, 18 Jun 2018 07:52:00 +0000 (00:52 -0700)
cargo.pm
debian/changelog

index 52d2dfd957b76627c0a713f8973c17e4b8cf585d..5d30459bab63dd1aa70a8a1508a9d3a2d3989301 100644 (file)
--- a/cargo.pm
+++ b/cargo.pm
@@ -141,6 +141,7 @@ sub configure {
     my $rustflags_toml = join(", ",
         '"-C"', '"linker=' . dpkg_architecture_value("DEB_HOST_GNU_TYPE") . '-gcc"',
         '"-C"', '"debuginfo=2"',
+        '"--cap-lints"', '"warn"',
         @ldflags);
     open(CONFIG, ">" . $this->{cargo_home} . "/config");
     print(CONFIG qq{
index c25a3c39f8a9b9fa8ad739945d91f862c7c31831..62f2bb21531e676ecd3bcf45db3b12f09baf4905 100644 (file)
@@ -1,3 +1,10 @@
+dh-cargo (5) UNRELEASED; urgency=medium
+
+  * Pass `--cap-lints warn` in rustflags to avoid builds breaking when rustc
+    adds new warnings.
+
+ -- Ximin Luo <infinity0@debian.org>  Mon, 18 Jun 2018 00:51:31 -0700
+
 dh-cargo (4) unstable; urgency=medium
 
   * Pass cargo-version not Debian-version to `cargo install`.