Subject: [PATCH 1/9] gnu: add rust-dashmap-5

From: Andrew Jose <[email-masked]>
Date: Tue, 3 Oct 2023 14:26:31 +0530

rust-dashmap-4: inherit from rust-dashmap-5
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3c83563c45..9f598aad01 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18264,8 +18264,38 @@ (define-public rust-darling-macro-0.9
         ("rust-quote" ,rust-quote-0.6)
         ("rust-syn" ,rust-syn-0.15))))))
 
+(define-public rust-dashmap-5
+  (package
+    (name "rust-dashmap")
+    (version "5.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dashmap" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0miqnlxi501vfbv6mw5jbmzgnj0wjrch3p4abvpd59s9v30lg1wp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-arbitrary" ,rust-arbitrary-1)
+	("rust-cfg-if" ,rust-cfg-if-1)
+	("rust-hashbrown" ,rust-hashbrown-0.14)
+	("rust-lock-api" ,rust-lock-api-0.4)
+	("rust-once-cell" ,rust-once-cell-1)
+	("rust-parking-lot-core" ,rust-parking-lot-core-0.9)
+	("rust-rayon" ,rust-rayon-1)
+	("rust-serde" ,rust-serde-1))))
+     (home-page "https://github.com/xacrimon/dashmap")
+     (synopsis "Blazing fast concurrent HashMap for Rust")
+     (description "This package implements a blazing fast concurrent HashMap
+for Rust.")
+     (license license:expat)))
+
 (define-public rust-dashmap-4
   (package
+    (inherit rust-dashmap-5)
     (name "rust-dashmap")
     (version "4.0.2")
     (source
-- 
2.34.1