Package: rust-criterion
Version: 0.5.1-10

I hope to update rust-itertools to 0.14 soon. Criterion needs a small adjustment
to a dependency patch to build with the new version.

Additionally, there was also a FTBFS bug which needed to be fixed.

Debdiff is attatched.
diff -Nru rust-criterion-0.5.1/debian/changelog 
rust-criterion-0.5.1/debian/changelog
--- rust-criterion-0.5.1/debian/changelog       2025-02-09 08:22:44.000000000 
+0000
+++ rust-criterion-0.5.1/debian/changelog       2026-01-22 08:45:17.000000000 
+0000
@@ -1,3 +1,11 @@
+rust-criterion (0.5.1-10.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Relax itertools dependency to allow 0.14.
+  * Allow "mismatched lifetime syntax" lints (Closes: #1120184)
+
+ -- Peter Michael Green <[email protected]>  Thu, 22 Jan 2026 08:45:17 +0000
+
 rust-criterion (0.5.1-10) unstable; urgency=medium
 
   * update git-buildpackage config: fix usage comments
diff -Nru rust-criterion-0.5.1/debian/control 
rust-criterion-0.5.1/debian/control
--- rust-criterion-0.5.1/debian/control 2025-02-06 13:09:45.000000000 +0000
+++ rust-criterion-0.5.1/debian/control 2026-01-22 08:45:17.000000000 +0000
@@ -14,7 +14,8 @@
  librust-csv-1+default-dev,
  librust-futures-0.3+executor-dev,
  librust-is-terminal-0.4+default-dev,
- librust-itertools-0.13+default-dev,
+ librust-itertools+default-dev (>= 0.10),
+ librust-itertools+default-dev (<< 0.15),
  librust-itertools-num-0.1+default-dev,
  librust-num-complex-0.4+std-dev,
  librust-num-traits-0.2+std-dev,
@@ -54,7 +55,8 @@
  librust-csv-1+default-dev,
  librust-futures-0.3+executor-dev,
  librust-is-terminal-0.4+default-dev,
- librust-itertools-0.13+default-dev,
+ librust-itertools+default-dev (>= 0.10),
+ librust-itertools+default-dev (<< 0.15),
  librust-num-traits-0.2+std-dev,
  librust-once-cell-1+default-dev,
  librust-oorandom-11+default-dev,
diff -Nru rust-criterion-0.5.1/debian/patches/2001_itertools.patch 
rust-criterion-0.5.1/debian/patches/2001_itertools.patch
--- rust-criterion-0.5.1/debian/patches/2001_itertools.patch    2025-02-06 
13:04:58.000000000 +0000
+++ rust-criterion-0.5.1/debian/patches/2001_itertools.patch    2026-01-22 
08:45:11.000000000 +0000
@@ -2,7 +2,7 @@
 Author: Peter Michael Green <[email protected]>
 Source: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1082548;filename=rust-criterion.debdiff;msg=5
 Bug-Debian: https://bugs.debian.org/1082548
-Last-Update: 2024-09-22
+Last-Update: 2026-01-22
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/Cargo.toml
@@ -12,7 +12,7 @@
  once_cell      = "1.14"
  criterion-plot = { path = "plot", version = "0.5.0" }
 -itertools      = "0.10"
-+itertools      = ">= 0.10, <= 0.13"
++itertools      = ">= 0.10, <= 0.14"
  serde          = "1.0"
  serde_json     = "1.0"
  serde_derive   = "1.0"
@@ -23,7 +23,7 @@
  [dependencies]
  cast = "0.3"
 -itertools = "0.10"
-+itertools = ">= 0.10, <= 0.13"
++itertools = ">= 0.10, <= 0.14"
  
  [dev-dependencies]
  itertools-num = "0.1"
diff -Nru 
rust-criterion-0.5.1/debian/patches/2004_allow_mismatched_lifetime_syntaxes.patch
 
rust-criterion-0.5.1/debian/patches/2004_allow_mismatched_lifetime_syntaxes.patch
--- 
rust-criterion-0.5.1/debian/patches/2004_allow_mismatched_lifetime_syntaxes.patch
   1970-01-01 00:00:00.000000000 +0000
+++ 
rust-criterion-0.5.1/debian/patches/2004_allow_mismatched_lifetime_syntaxes.patch
   2026-01-22 08:45:17.000000000 +0000
@@ -0,0 +1,25 @@
+Description: avoid build failure due to "mismatched lifetime syntax" lints
+ These were introduced in rustc 1.89:
+ 
<https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint>.
+ Normally these would only be warnings,
+ but this package has #![deny(warnings)] turning them into errors.
+ Explicitly allow them.
+Author: Peter Michael Green <[email protected]>
+Bug-Debian: https://bugs.debian.org/1120184
+Forwarded: not-needed
+Last-Update: 2024-09-22
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+Index: rust-criterion-0.5.1/plot/src/lib.rs
+===================================================================
+--- rust-criterion-0.5.1.orig/plot/src/lib.rs
++++ rust-criterion-0.5.1/plot/src/lib.rs
+@@ -364,6 +364,7 @@
+ #![deny(missing_docs)]
+ #![deny(warnings)]
+ #![allow(unexpected_cfgs)]
++#![allow(mismatched_lifetime_syntaxes)]
+ #![deny(bare_trait_objects)]
+ // This lint has lots of false positives ATM, see
+ // https://github.com/Manishearth/rust-clippy/issues/761
diff -Nru rust-criterion-0.5.1/debian/patches/series 
rust-criterion-0.5.1/debian/patches/series
--- rust-criterion-0.5.1/debian/patches/series  2025-02-06 13:04:58.000000000 
+0000
+++ rust-criterion-0.5.1/debian/patches/series  2026-01-22 08:45:17.000000000 
+0000
@@ -3,3 +3,4 @@
 2001_itertools.patch
 2002_no_unstable_features.patch
 2003_allow_unexpected_cfgs.patch
+2004_allow_mismatched_lifetime_syntaxes.patch

Reply via email to