Subject: [bug#66717] [PATCH 34/64] gnu: Add rust-array-init-2.

From: Steve George <[email-masked]>
Date: Mon, 23 Oct 2023 23:21:19 +0100

* gnu/packages/crates-io.scm (rust-array-init-2): New variable.
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d7edc49fb6..8c21940432 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4088,6 +4088,28 @@ (define-public rust-arr-macro-0.1
 do not implement the copy or default traits.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-array-init-2
+  (package
+    (name "rust-array-init")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "array-init" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1z0bh6grrkxlbknq3xyipp42rasngi806y92fiddyb2n99lvfqix"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:skip-build? #f))
+    (home-page "https://github.com/Manishearth/array-init/")
+    (synopsis "Safe wrapper for initializing fixed-size arrays")
+    (description
+     "A crate that removes the need to fill an array before running
+initialisers.  Provides an init closure that's called for each element of the
+array.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-array-macro-1
   (package
     (name "rust-array-macro")
-- 
2.41.0