Subject: [bug#69803] [PATCH rust-team 10/37] gnu: Add rust-enumn-0.1.

From: Herman Rimm <[email-masked]>
Date: Thu, 14 Mar 2024 22:16:11 +0100

* gnu/packages/crates-io.scm (rust-enumn-0.1): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 477eafa902..37af29f88c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21601,6 +21601,27 @@ (define-public rust-enumflags2-derive-0.6
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-enumn-0.1
+  (package
+    (name "rust-enumn")
+    (version "0.1.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "enumn" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hnvrp440hwjfd4navbni2mhcjd63adxp8ryk6z3prw8d7yh1l3g"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/dtolnay/enumn")
+    (synopsis "Convert number to enum")
+    (description "This package provides number to enum conversion.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-enumset-1
   (package
     (name "rust-enumset")
-- 
2.41.0