Subject: [PATCH v2 02/44] gnu: Add rust-cached-0.48.

From: Murilo <[email-masked]>
Date: Fri, 31 May 2024 09:37:52 -0300

* gnu/packages/crates-io.scm (rust-cached-0.48): New variable.

Change-Id: Ia8ff0dc6763b45f8a21fb77afe1ab8edae36fc50
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 20c2ea25f6..a18f756e62 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43,6 +43,7 @@
 ;;; Copyright © 2024 Tomas Volf <[email-masked]>
 ;;; Copyright © 2024 Suhail Singh <[email-masked]>
 ;;; Copyright © 2024 Aaron Covrig <[email-masked]>
+;;; Copyright © 2024 Murilo <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -10420,6 +10421,34 @@ (define-public rust-cache-padded-1
 cached data.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-cached-0.48
+  (package
+    (name "rust-cached")
+    (version "0.48.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cached" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0pshxkggxh8r32mqg04ahz26gvf2nfmlhk41js5pfn6z83jsqprm"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-instant" ,rust-instant-0.1)
+                       ("rust-hashbrown" ,rust-hashbrown-0.14)
+                       ("rust-cached-proc-macro-types" ,rust-cached-proc-macro-types-0.1)
+                       ("rust-cached-proc-macro" ,rust-cached-proc-macro-0.19)
+                       ("rust-ahash" ,rust-ahash-0.8))))
+    (home-page "https://github.com/jaemk/cached")
+    (synopsis
+     "Generic cache implementations and simplified function memoization")
+    (description
+     "Generic cache implementations and simplified function memoization")
+    (license license:expat)))
+
 (define-public rust-cachedir-0.3
   (package
     (name "rust-cachedir")
-- 
2.41.0