Subject: [bug#74551] [PATCH v2 11/49] gnu: Add rust-auto-enums-0.8.

From: Jordan Moore <[email-masked]>
Date: Sat, 30 Nov 2024 11:54:46 -0500

* gnu/packages/crates-io.scm (rust-auto-enums-0.8): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 84e18490a3..3f5b97d3c5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6483,6 +6483,41 @@ (define-public rust-auto-impl-0.5
      "Automatically implement traits for common smart pointers and closures.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-auto-enums-0.8
+  (package
+    (name "rust-auto-enums")
+    (version "0.8.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "auto_enums" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1yxcdw961199wrk1v5js321ynyfd4m40c0gi2pypby2mx2vpg6s5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-derive-utils" ,rust-derive-utils-0.14)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs (("rust-futures" ,rust-futures-0.1)
+                                   ("rust-futures-util" ,rust-futures-util-0.3)
+                                   ("rust-http-body" ,rust-http-body-1)
+                                   ("rust-rayon" ,rust-rayon-1)
+                                   ("rust-rustversion" ,rust-rustversion-1)
+                                   ("rust-serde" ,rust-serde-1)
+                                   ("rust-tokio" ,rust-tokio-1)
+                                   ("rust-tokio" ,rust-tokio-0.1)
+                                   ("rust-tokio" ,rust-tokio-0.2)
+                                   ("rust-tokio" ,rust-tokio-0.3))))
+    (home-page "https://github.com/taiki-e/auto_enums")
+    (synopsis
+     "library for to allow multiple return types by automatically generated enum.")
+    (description
+     "This package provides a library for to allow multiple return types by
+automatically generated enum.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-auto-impl-0.4
   (package
     (inherit rust-auto-impl-0.5)
-- 
2.46.0