Subject: [PATCH 129/156] gnu: Add rust-state-0.6.

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

* gnu/packages/crates-io.scm (rust-state-0.6): New variable.
(rust-state-0.5): Inherit from rust-state-0.6.

Change-Id: I60b70871e098e3e2a75592099c9bc86070a0f4bb
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b85f1bd4f12..1945399bd79 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71102,8 +71102,31 @@ (define-public rust-standback-0.2
     (description "New standard library, old compiler.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-state-0.6
+  (package
+    (name "rust-state")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "state" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1n3n2h324h1y5zhaajh6kplvzfvg1l6hsr8siggmf4yq8m24m31b"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-loom" ,rust-loom-0.5))))
+    (home-page "https://github.com/SergioBenitez/state")
+    (synopsis "Library for safe global and thread-local state management")
+    (description
+     "This package provides a library for safe global and thread-local state
+management.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-state-0.5
   (package
+    (inherit rust-state-0.6)
     (name "rust-state")
     (version "0.5.3")
     (source (origin
@@ -71113,18 +71136,11 @@ (define-public rust-state-0.5
               (sha256
                (base32
                 "0fzji31ijbkimbzdy4dln9mp5xp7lm1a0dnqxv4n10hywphnds6v"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-loom" ,rust-loom-0.5))
        #:cargo-development-inputs
-       (("rust-static-assertions" ,rust-static-assertions-1))))
-    (home-page "https://github.com/SergioBenitez/state")
-    (synopsis "Library for safe global and thread-local state management")
-    (description
-     "This package provides a library for safe global and thread-local state
-management.")
-    (license (list license:expat license:asl2.0))))
+       (("rust-static-assertions" ,rust-static-assertions-1))))))
 
 (define-public rust-state-0.4
   (package
-- 
2.41.0