Subject: [bug#70787] [PATCH 1/4] gnu: Add rust-enumn-0.1.

From: Sergio Pastor Pérez <[email-masked]>
Date: Sun, 5 May 2024 16:44:05 +0200

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

Change-Id: I904a65ecb8010042cde0ed05f5f6d78f378e653e
---
 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 a67d3d74bb..8391e51535 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21228,6 +21228,28 @@ (define-public rust-entities-1
 from HTML entities.")
     (license license:expat)))
 
+(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
+     `(#:skip-build? #t
+       #: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 "Convert number to enum")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-enum-as-inner-0.6
   (package
     (name "rust-enum-as-inner")
-- 
2.41.0