guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

262/330: gnu: Add rust-state-0.6.


From: guix-commits
Subject: 262/330: gnu: Add rust-state-0.6.
Date: Mon, 18 Mar 2024 07:16:33 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 6818d5314e3cdb439b3c305e0c84e0f1b33e3585
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 11:36:00 2024 +0200

    gnu: Add rust-state-0.6.
    
    * gnu/packages/crates-io.scm (rust-state-0.6): New variable.
    (rust-state-0.5): Inherit from rust-state-0.6.
    
    Change-Id: I1fc9c235c85eb1956af5aec9054ba5c196cbe0e8
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++--------
 1 file changed, 25 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 76116b984c..d725e92e29 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -68781,8 +68781,32 @@ deeply recursive algorithms that may accidentally blow 
the stack.")
     (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
+     `(#: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))))
+
 (define-public rust-state-0.5
   (package
+    (inherit rust-state-0.6)
     (name "rust-state")
     (version "0.5.3")
     (source (origin
@@ -68792,18 +68816,11 @@ deeply recursive algorithms that may accidentally 
blow the stack.")
               (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]