diff --git a/half-fix-metadata-auto.diff b/half-fix-metadata-auto.diff index 995b235..54a64eb 100644 --- a/half-fix-metadata-auto.diff +++ b/half-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- half-2.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ half-2.4.1/Cargo.toml 2024-04-16T11:13:05.272246+00:00 ++++ half-2.4.1/Cargo.toml 2024-09-15T05:57:07.275924+00:00 @@ -111,5 +111,3 @@ std = ["alloc"] use-intrinsics = [] diff --git a/half-fix-metadata.diff b/half-fix-metadata.diff index 245cd50..85198a4 100644 --- a/half-fix-metadata.diff +++ b/half-fix-metadata.diff @@ -1,12 +1,16 @@ --- half-2.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ half-2.4.1/Cargo.toml 2024-04-16T11:14:00.026530+00:00 -@@ -86,9 +86,6 @@ - optional = true ++++ half-2.4.1/Cargo.toml 2024-09-15T05:57:16.266047+00:00 +@@ -82,12 +82,9 @@ default-features = false + [dependencies.zerocopy] +-version = "0.6.0" ++version = "0.7.0" + optional = true + default-features = false +- -[dev-dependencies.criterion] -version = "0.4.0" -- + [dev-dependencies.crunchy] version = "0.2.2" - diff --git a/rust-half.spec b/rust-half.spec index 05681c2..666ab34 100644 --- a/rust-half.spec +++ b/rust-half.spec @@ -16,6 +16,8 @@ Source: %{crates_source} Patch: half-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency +# * allow current releases of zerocopy (0.7.x): +# https://github.com/starkat99/half-rs/pull/114 Patch: half-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index be67729..46d1af0 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -2,5 +2,6 @@ summary = "Half-precision floating point f16 and bf16 types for Rust" cargo-toml-patch-comments = [ "drop unused, benchmark-only criterion dev-dependency", + "allow current releases of zerocopy (0.7.x): https://github.com/starkat99/half-rs/pull/114", ]