Package: rust-criterion-0.3
Version: 0.5.1-3

I hope to update rust-itertools to 0.12 soon. Criterion will need an update
for this.

Upstream did not make any code changes when changing the dependencies
to allow 0.12, and I was able to successfully build and test the debian package
with the dependency relaxed.

The debdiff I used for testing is attatched.

diff -Nru rust-criterion-0.3-0.3.6/debian/changelog 
rust-criterion-0.3-0.3.6/debian/changelog
--- rust-criterion-0.3-0.3.6/debian/changelog   2023-08-14 11:19:26.000000000 
+0000
+++ rust-criterion-0.3-0.3.6/debian/changelog   2024-06-30 12:28:45.000000000 
+0000
@@ -1,3 +1,10 @@
+rust-criterion-0.3 (0.3.6-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Relax itertools dependency.
+
+ -- Peter Michael Green <plugw...@debian.org>  Sun, 30 Jun 2024 12:28:45 +0000
+
 rust-criterion-0.3 (0.3.6-8) unstable; urgency=medium
 
   * update dh-cargo fork;
diff -Nru rust-criterion-0.3-0.3.6/debian/control 
rust-criterion-0.3-0.3.6/debian/control
--- rust-criterion-0.3-0.3.6/debian/control     2023-08-14 11:17:49.000000000 
+0000
+++ rust-criterion-0.3-0.3.6/debian/control     2024-02-10 03:53:38.000000000 
+0000
@@ -12,7 +12,7 @@
  librust-criterion-plot-0.4+default-dev (>= 0.4.4) <!nocheck>,
  librust-csv-1+default-dev (>= 1.1) <!nocheck>,
  librust-futures-0.3+executor-dev <!nocheck>,
- librust-itertools-0.10+default-dev <!nocheck>,
+ librust-itertools-0+default-dev <!nocheck>,
  librust-itertools-num-0.1+default-dev <!nocheck>,
  librust-lazy-static-1+default-dev (>= 1.4) <!nocheck>,
  librust-num-complex-0.4+std-dev <!nocheck>,
@@ -51,7 +51,7 @@
  librust-criterion-plot-0.4+default-dev,
  librust-csv-1+default-dev,
  librust-futures-0.3+executor-dev,
- librust-itertools-0.10+default-dev,
+ librust-itertools+default-dev,
  librust-lazy-static-1+default-dev,
  librust-num-traits-0.2-dev,
  librust-oorandom-11+default-dev,
diff -Nru rust-criterion-0.3-0.3.6/debian/patches/relax-itertools.patch 
rust-criterion-0.3-0.3.6/debian/patches/relax-itertools.patch
--- rust-criterion-0.3-0.3.6/debian/patches/relax-itertools.patch       
1970-01-01 00:00:00.000000000 +0000
+++ rust-criterion-0.3-0.3.6/debian/patches/relax-itertools.patch       
2024-06-30 12:28:45.000000000 +0000
@@ -0,0 +1,26 @@
+Index: rust-criterion-0.3-0.3.6/Cargo.toml
+===================================================================
+--- rust-criterion-0.3-0.3.6.orig/Cargo.toml
++++ rust-criterion-0.3-0.3.6/Cargo.toml
+@@ -19,7 +19,7 @@ exclude     = ["book/*"]
+ [dependencies]
+ lazy_static    = "1.4"
+ criterion-plot = { path = "plot", version = "0.4.4" }
+-itertools      = "0.10"
++itertools      = ">= 0.10, < 1.0"
+ serde          = "1.0"
+ serde_json     = "1.0"
+ serde_derive   = "1.0"
+Index: rust-criterion-0.3-0.3.6/plot/Cargo.toml
+===================================================================
+--- rust-criterion-0.3-0.3.6.orig/plot/Cargo.toml
++++ rust-criterion-0.3-0.3.6/plot/Cargo.toml
+@@ -13,7 +13,7 @@ license = "MIT/Apache-2.0"
+ 
+ [dependencies]
+ cast = "0.3"
+-itertools = "0.10"
++itertools = ">= 0.10, < 1.0"
+ 
+ [dev-dependencies]
+ itertools-num = "0.1"
diff -Nru rust-criterion-0.3-0.3.6/debian/patches/series 
rust-criterion-0.3-0.3.6/debian/patches/series
--- rust-criterion-0.3-0.3.6/debian/patches/series      2023-08-14 
11:17:49.000000000 +0000
+++ rust-criterion-0.3-0.3.6/debian/patches/series      2024-02-10 
04:24:10.000000000 +0000
@@ -2,3 +2,4 @@
 1001_num-traits.patch
 1002_modernize_macro_syntax.patch
 2002_no_unstable_features.patch
+relax-itertools.patch

Reply via email to