Subject: [PATCH] gnu: Add rust-dyn-iter-1.

From: woshilapin <[email-masked]>
Date: Wed, 08 Nov 2023 15:46:22 +0000

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

From 07cdbbf408e64dd934d1de95361540f1df17b8ca Mon Sep 17 00:00:00 2001
From: Jean SIMARD <[email-masked]>
Date: Wed, 8 Nov 2023 16:26:44 +0100
Subject: [PATCH] gnu: Add rust-dyn-iter-1.

    * gnu/packages/crates-io.scm (rust-dyn-iter-1): New variable.
---
 gnu/packages/crates-io.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d42ff60a20..8b27511d3a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33,6 +33,7 @@
 ;;; Copyright © 2022 Paul Alesius <[email-masked]>
 ;;; Copyright © 2023 Arnav Andrew Jose <[email-masked]>
 ;;; Copyright © 2023 Wilko Meyer <[email-masked]>
+;;; Copyright © 2023 Jean Simard <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -22592,6 +22593,23 @@ (define-public rust-dyn-clone-1
     (description "Clone trait that is object-safe")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-dyn-iter-1
+  (package
+    (name "rust-dyn-iter")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dyn-iter" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "109b69c2a57zhzsipkcb8gjjjbs8xi1xdb3b86r0vr5jz7v876g4"))))
+    (build-system cargo-build-system)
+    (home-page "https://gitlab.com/woshilapin/dyn-iter")
+    (synopsis "Helper to handle non-describable 'Iterator'")
+    (description "Wrapper around `Box<dyn Iterator<Item = V> + 'iter>` to simplify your code")
+    (license license:expat)))
+
 (define-public rust-dwrote-0.11
   (package
     (name "rust-dwrote")
-- 
2.39.2