Subject: [PATCH 03/21] gnu: Add rust-enum-primitive-0.1.

From: aecepoglu <[email-masked]>
Date: Thu, 4 Feb 2021 14:37:16 +0300

* gnu/packages/crates-io.scm (rust-enum-primitive-0.1): New variable.
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5a9a0c239a..eb550ce9f0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11048,6 +11048,31 @@ accessor functions on enums.")
         ("rust-quote" ,rust-quote-0.6)
         ("rust-syn" ,rust-syn-0.15))))))
 
+(define-public rust-enum-primitive-0.1
+  (package
+    (name "rust-enum-primitive")
+    (version "0.1.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "enum-primitive" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "100ip2p3w1rq0clca2ai5shhvpxfipnsjncj0f9ralad5w4m2idy"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-num-traits" ,rust-num-traits-0.1))))
+    (home-page
+      "https://github.com/andersk/enum_primitive-rs")
+    (synopsis
+      "Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0")
+    (description
+      "This package provides a macro to generate num::FromPrimitive instances for enum that works in Rust 1.0")
+    (license license:expat)))
+
 (define-public rust-enum-to-u8-slice-derive-0.1
   (package
     (name "rust-enum-to-u8-slice-derive")
-- 
2.30.0