diff --git a/.gitignore b/.gitignore index 6183ee2..d80ecb0 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ /futures-util-0.3.27.crate /futures-util-0.3.28.crate /futures-util-0.3.30.crate +/futures-util-0.3.31.crate diff --git a/0001-revert-removal-of-unstable-io_slice_advance-feature-.patch b/0001-revert-removal-of-unstable-io_slice_advance-feature-.patch new file mode 100644 index 0000000..3f0ed74 --- /dev/null +++ b/0001-revert-removal-of-unstable-io_slice_advance-feature-.patch @@ -0,0 +1,24 @@ +From 6ababfea184c345d9b887797de871863d0ae9fd5 Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Mon, 7 Oct 2024 23:22:34 +0200 +Subject: [PATCH] revert removal of unstable io_slice_advance feature gate + +--- + src/lib.rs | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lib.rs b/src/lib.rs +index 2201e4f..8024f7b 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -10,6 +10,7 @@ + ) + ))] + #![warn(missing_docs, unsafe_op_in_unsafe_fn)] ++#![cfg_attr(feature = "write-all-vectored", feature(io_slice_advance))] + #![cfg_attr(docsrs, feature(doc_cfg))] + + #[cfg(all(feature = "bilock", not(feature = "unstable")))] +-- +2.46.2 + diff --git a/rust-futures-util.spec b/rust-futures-util.spec index 1425e4e..d2cfadd 100644 --- a/rust-futures-util.spec +++ b/rust-futures-util.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} @@ -6,13 +6,16 @@ %global crate futures-util Name: rust-futures-util -Version: 0.3.30 +Version: 0.3.31 Release: %autorelease Summary: Common utilities and extension traits for the futures-rs library License: MIT OR Apache-2.0 URL: https://crates.io/crates/futures-util Source: %{crates_source} +# * revert upstream change that broke compilation with Rust < 1.81: +# https://github.com/rust-lang/futures-rs/issues/2892 +Patch10: 0001-revert-removal-of-unstable-io_slice_advance-feature-.patch BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index 553347c..5f3a208 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,12 @@ +[[package.extra-patches]] +number = 10 +file = "0001-revert-removal-of-unstable-io_slice_advance-feature-.patch" +comments = [ + """\ +revert upstream change that broke compilation with Rust < 1.81: +https://github.com/rust-lang/futures-rs/issues/2892""", +] + [tests] run = ["none"] comments = ["tests can only be run in-tree"] diff --git a/sources b/sources index bbebbec..523f36b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (futures-util-0.3.30.crate) = 7faae5aa35641d858d0f5430e4a69acd4ba9037852ad73c5a890bffeed411d28820883e18bad4ca8f7b0a765f9f4c5dbeaf5d0cfaaf90c2c69846434ae091951 +SHA512 (futures-util-0.3.31.crate) = 429b1de584546b931b17d475aacbdb0c14824a57d960c44e615aa808e8c0f9c126473e313a7150b3de87ea91b7eebebb1041509f61b3493fee8a9cd2c75c4df3