Subject: [bug#68312] [PATCH 059/156] gnu: Add rust-futures-intrusive-0.5.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:36 +0100

* gnu/packages/crates-io.scm (rust-futures-intrusive-0.5): New variable.
(rust-futures-intrusive-0.3): Inherit from rust-futures-intrusive-0.5.

Change-Id: Ie900d30a7bb0d3f9236b6b44edfdbcbfbda6a8c9
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5b6f96ecbc4..a7658d6b6e4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28090,24 +28090,23 @@ (define-public rust-futures-executor-preview-0.3
 library.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-futures-intrusive-0.3
+(define-public rust-futures-intrusive-0.5
   (package
     (name "rust-futures-intrusive")
-    (version "0.3.1")
+    (version "0.5.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "futures-intrusive" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "00qpir3q6j7blwpnpffj7ypf1z8wc87ldn62qr7sapymgg82j5dw"))))
+        (base32 "0vwm08d1pli6bdaj0i7xhk3476qlx4pll6i0w03gzdnh7lh0r4qx"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #true              ;XXX: need rust-async-std-1
-       #:cargo-inputs
-       (("rust-futures-core" ,rust-futures-core-0.3)
-        ("rust-lock-api" ,rust-lock-api-0.3)
-        ("rust-parking-lot" ,rust-parking-lot-0.10))))
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-lock-api" ,rust-lock-api-0.4)
+                       ("rust-parking-lot" ,rust-parking-lot-0.12))))
     (home-page "https://github.com/Matthias247/futures-intrusive")
     (synopsis "Futures based on intrusive data structures")
     (description
@@ -28116,6 +28115,25 @@ (define-public rust-futures-intrusive-0.3
 intrusive collections.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-futures-intrusive-0.3
+  (package
+    (inherit rust-futures-intrusive-0.5)
+    (name "rust-futures-intrusive")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "futures-intrusive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "00qpir3q6j7blwpnpffj7ypf1z8wc87ldn62qr7sapymgg82j5dw"))))
+    (arguments
+     `(#:skip-build? #true              ;XXX: need rust-async-std-1
+       #:cargo-inputs
+       (("rust-futures-core" ,rust-futures-core-0.3)
+        ("rust-lock-api" ,rust-lock-api-0.3)
+        ("rust-parking-lot" ,rust-parking-lot-0.10))))))
+
 (define-public rust-futures-io-0.3
   (package
     (name "rust-futures-io")
-- 
2.41.0