Subject: [bug#66842] [PATCH 22/39] gnu: Add rust-enum-iterator-1.

From: Jaeme Sifat <[email-masked]>
Date: Mon, 30 Oct 2023 22:52:26 -0400

* gnu/packages/crates-io.scm (rust-enum-iterator-1): New variable.

Change-Id: I25b636480e591085eef167b43eacb71781971e8b
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bdc73cdcc6..5674ff2837 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -23790,6 +23790,29 @@ (define-public rust-enum-dispatch-0.3
 increasing their method call speed up to 10x.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-enum-iterator-1
+  (package
+    (name "rust-enum-iterator")
+    (version "1.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "enum-iterator" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "12g63d7w5vpq964f7fbnahw2qiqsml3f9j3rxrk6f1yxnmrkipbs"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-enum-iterator-derive" ,rust-enum-iterator-derive-1))))
+    (home-page "https://github.com/stephaneyfx/enum-iterator")
+    (synopsis
+     "Tools to iterate over all values of a type (e.g. all variants of an
+enumeration)")
+    (description
+     "This package provides tools to iterate over all values of a
+type (e.g. all variants of an enumeration)")
+    (license license:bsd-0)))
+
 (define-public rust-enum-iterator-derive-1
   (package
     (name "rust-enum-iterator-derive")
-- 
2.34.1