Subject: [PATCH 18/54] gnu: Add rust-gix-hashtable-0.4.

From: Steve George <[email-masked]>
Date: Thu, 9 Nov 2023 19:38:15 +0000

* gnu/packages/crates-io.scm (rust-gix-hashtable-0.4): New variable.

Change-Id: I867595bb3d256f8286f48e0148c2b72d42e4bfc7
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2e42323ba99..10dd1482c5f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31140,8 +31140,33 @@ (define-public rust-gix-hash-0.11
     ;(license (list license:expat license:asl2.0))
     ))
 
+(define-public rust-gix-hashtable-0.4
+  (package
+    (name "rust-gix-hashtable")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gix-hashtable" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "05ka2z2z1qcxmfw8abvc5fgvygrrjfiaaz61h6701ba11146i4j0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-gix-hash" ,rust-gix-hash-0.13)
+                       ("rust-hashbrown" ,rust-hashbrown-0.14)
+                       ("rust-parking-lot" ,rust-parking-lot-0.12))))
+    (home-page "https://github.com/Byron/gitoxide")
+    (synopsis
+     "Hashtable based data structures optimized to utilize ObjectId keys")
+    (description
+     "Hashtable based data structures optimized to utilize @code{ObjectId}
+keys. Part of Gitoxide a Rust implementation of Git.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-gix-hashtable-0.2
   (package
+    (inherit rust-gix-hashtable-0.4)
     (name "rust-gix-hashtable")
     (version "0.2.4")
     (source
@@ -31151,18 +31176,11 @@ (define-public rust-gix-hashtable-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "13f5v6vghfpzxm5xkmk86gjhsjfqng9rpam37hqjssgkxkk4qprq"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-gix-hash" ,rust-gix-hash-0.11)
         ("rust-hashbrown" ,rust-hashbrown-0.14)
-        ("rust-parking-lot" ,rust-parking-lot-0.12))))
-    (home-page "https://github.com/Byron/gitoxide")
-    (synopsis "Hashtable based data structures optimized to utilize ObjectId keys")
-    (description
-     "This package provides a crate that provides hashtable based data structures
-optimized to utilize @code{ObjectId} keys.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-parking-lot" ,rust-parking-lot-0.12))))))
 
 (define-public rust-gix-ignore-0.3
   (package
-- 
2.41.0