diff --git a/chrono-fix-metadata.diff b/chrono-fix-metadata.diff index a52b3f8..6081d7b 100644 --- a/chrono-fix-metadata.diff +++ b/chrono-fix-metadata.diff @@ -1,6 +1,38 @@ --- chrono-0.4.22/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ chrono-0.4.22/Cargo.toml 2022-08-18T23:08:52.520479+00:00 -@@ -121,7 +121,6 @@ ++++ chrono-0.4.22/Cargo.toml 2022-11-04T17:26:18.225342+00:00 +@@ -40,23 +40,6 @@ + + [lib] + name = "chrono" +- +-[[bench]] +-name = "chrono" +-harness = false +-required-features = ["__internal_bench"] +- +-[[bench]] +-name = "serde" +-harness = false +-required-features = [ +- "__internal_bench", +- "serde", +-] +- +-[dependencies.criterion] +-version = "0.3" +-optional = true + + [dependencies.iana-time-zone] + version = "0.1.44" +@@ -111,7 +94,6 @@ + + [features] + __doctest = [] +-__internal_bench = ["criterion"] + alloc = [] + clock = [ + "std", +@@ -121,7 +103,6 @@ "clock", "std", "oldtime", @@ -8,7 +40,7 @@ ] libc = [] oldtime = ["time"] -@@ -130,8 +129,6 @@ +@@ -130,8 +111,6 @@ "pure-rust-locales", "alloc", ] diff --git a/rust-chrono.spec b/rust-chrono.spec index 1934843..94b066c 100644 --- a/rust-chrono.spec +++ b/rust-chrono.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} @@ -17,10 +17,9 @@ Source: %{crates_source} Patch: chrono-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * remove wasm-specific features +# * drop unused, benchmark-only criterion dev-dependency to speed up builds Patch: chrono-fix-metadata.diff -ExclusiveArch: %{rust_arches} - BuildRequires: rust-packaging >= 21 %global _description %{expand: diff --git a/rust2rpm.conf b/rust2rpm.conf index 5bd3730..a943c0d 100644 --- a/rust2rpm.conf +++ b/rust2rpm.conf @@ -1,6 +1,4 @@ [DEFAULT] all-features = true unwanted-features = - criterion __doctest - __internal_bench