guix-commits
[Top][All Lists]
Advanced

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

17/21: gnu: Add rust-lru-0.10.


From: guix-commits
Subject: 17/21: gnu: Add rust-lru-0.10.
Date: Wed, 18 Dec 2024 13:52:09 -0500 (EST)

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

commit 3338257d70ff2bd912a13d3f810d48bbfe5aa5af
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Dec 11 10:49:07 2024 +0900

    gnu: Add rust-lru-0.10.
    
    * gnu/packages/crates-io.scm (rust-lru-0.10): New variable.
    (rust-lru-0.9): Inherit from it.
    
    Change-Id: I74de3fb4266a851e8c025c3ef8e0a667971ed237
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bc3511615c..32063a6704 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43319,10 +43319,28 @@ image together with its neighboring pixels.")
     (description "This package provides a LRU cache implementation.")
     (license license:expat)))
 
-(define-public rust-lru-0.9
+(define-public rust-lru-0.10
   (package
     (inherit rust-lru-0.12)
     (name "rust-lru")
+    (version "0.10.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "lru" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0w5n2sgh66ac8ihqv6688mlm7zb3ks18jlbzpbhwgw3x8jp8z3ki"))))
+    (arguments
+     `(#:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.13))
+       #:cargo-development-inputs
+       (("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
+        ("rust-stats-alloc" ,rust-stats-alloc-0.1))))))
+
+(define-public rust-lru-0.9
+  (package
+    (inherit rust-lru-0.10)
+    (name "rust-lru")
     (version "0.9.0")
     (source
      (origin



reply via email to

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