Subject: [bug#67592] [PATCH 07/20] gnu: Add rust-deranged.

From: Rémi Teissier <[email-masked]>
Date: Tue, 12 Dec 2023 22:16:45 +0100

Change-Id: Iba195a0a3358818ebaf605b6b969ca2e057de02a
---
 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 034f3decb86..0c775f196b8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20485,6 +20485,33 @@ (define-public rust-der-parser-6
         ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
         ("rust-test-case" ,rust-test-case-1))))))
 
+(define-public rust-deranged-0.3
+  (package
+    (name "rust-deranged")
+    (version "0.3.9")
+    (source
+      (origin
+       (method url-fetch)
+       (uri (crate-uri "deranged" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+         (base32 "1lqzxgxqa1jdsvh4r7fbckpxvvfr8b819vwzdzd2f166494x0chg"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-serde" ,rust-serde-1)
+         ("rust-rand" ,rust-rand-0.8)
+         ("rust-quickcheck" ,rust-quickcheck-1)
+         ("rust-powerfmt" ,rust-powerfmt-0.2)
+         ("rust-num-traits" ,rust-num-traits-0.2))
+        #:cargo-development-inputs
+        (("rust-serde-json" ,rust-serde-json-1)
+         ("rust-rand" ,rust-rand-0.8))))
+    (home-page "https://github.com/jhpratt/deranged")
+    (synopsis "Ranged integers")
+    (description "This crate is a proof-of-concept implementation of ranged integers.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-derivative-2
   (package
     (name "rust-derivative")
-- 
2.41.0