Subject: [PATCH rust-team 09/18] gnu: Add rust-generic-array-1.

From: Gabriel Santos <[email-masked]>
Date: Sun, 30 Mar 2025 09:26:24 -0300

* gnu/packages/crates-io.scm (rust-generic-array-1): New variable.
(rust-generic-array-0.14): Inherit.

Change-Id: I8c1650fd66e32a0a18ab71c2eda83ee1306b220f
---
 gnu/packages/crates-io.scm | 37 ++++++++++++++++++++++++++++++-------
 1 file changed, 30 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d5395b1df5..2ac678069a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30496,8 +30496,37 @@ (define-public rust-generator-0.6
         ("rust-rustversion" ,rust-rustversion-1)
         ("rust-winapi" ,rust-winapi-0.3))))))
 
+(define-public rust-generic-array-1
+  (package
+    (name "rust-generic-array")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "generic-array" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "00qpb5rxfiv5mvdb2rvqmw40h612ysvwl36car8r66ypr55l9j78"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-const-default" ,rust-const-default-1)
+                       ("rust-faster-hex" ,rust-faster-hex-0.10)
+                       ("rust-heapless" ,rust-heapless-0.8)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-typenum" ,rust-typenum-1.17)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.5))))
+    (home-page "https://github.com/fizyk20/generic-array.git")
+    (synopsis
+     "Generic types implementing functionality of arrays")
+    (description
+     "Generic types implementing functionality of arrays.")
+    (license license:expat)))
+
 (define-public rust-generic-array-0.14
   (package
+    (inherit rust-generic-array-1)
     (name "rust-generic-array")
     (version "0.14.7")
     (source
@@ -30519,13 +30548,7 @@ (define-public rust-generic-array-0.14
         ("rust-zeroize" ,rust-zeroize-1))
        #:cargo-development-inputs
        (("rust-bincode" ,rust-bincode-1)
-        ("rust-serde-json" ,rust-serde-json-1))))
-    (home-page "https://github.com/fizyk20/generic-array.git")
-    (synopsis
-     "Generic types implementing functionality of arrays")
-    (description
-     "Generic types implementing functionality of arrays.")
-    (license license:expat)))
+        ("rust-serde-json" ,rust-serde-json-1))))))
 
 (define-public rust-generic-array-0.13
   (package
-- 
2.49.0