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

commit eabc4dbad66c1150adf0c7ce7ab7650e13050db5
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Wed Nov 20 21:04:51 2024 +0200

    gnu: Add rust-foldhash-0.1.
    
    * gnu/packages/crates-io.scm (rust-foldhash-0.1): New variable.
    
    Change-Id: Ibc3e83467e43be8b30d5caf42fdc7e476743aece
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d285445cf0..88cbcbdd61 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28514,6 +28514,33 @@ implementation that is more efficient for smaller hash 
keys.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-foldhash-0.1
+  (package
+    (name "rust-foldhash")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "foldhash" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18in1a8mjcg43pfrdkhwzr0w988zb2bmb6sqwi07snjlkhvcc7pq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs (("rust-ahash" ,rust-ahash-0.8)
+                                   ("rust-chrono" ,rust-chrono-0.4)
+                                   ("rust-criterion" ,rust-criterion-0.5)
+                                   ("rust-fxhash" ,rust-fxhash-0.2)
+                                   ("rust-hashbrown" ,rust-hashbrown-0.14)
+                                   ("rust-rand" ,rust-rand-0.8)
+                                   ("rust-uuid" ,rust-uuid-1))))
+    (home-page "https://github.com/orlp/foldhash";)
+    (synopsis "Non-cryptographic, minimally DoS-resistant hashing algorithm")
+    (description
+     "This package provides a fast, non-cryptographic, minimally
+@code{DoS-resistant} hashing algorithm.")
+    (license license:zlib)))
+
 (define-public rust-font-kit-0.11
   (package
     (name "rust-font-kit")

Reply via email to