Subject: [bug#68819] [PATCH 10/49] gnu: Add rust-from-variants-0.6.

From: Herman Rimm <[email-masked]>
Date: Tue, 30 Jan 2024 16:24:53 +0100

* gnu/packages/crates-io.scm (rust-from-variants-0.6): Add variable.

Change-Id: Iacf4ebe86fd8d4d95f41e7a8b43573f61daebbe5
---
 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 bc66f5aec2..2a0df8be22 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -23659,6 +23659,28 @@ (define-public rust-freetype-sys-0.13
     (native-inputs
      (list pkg-config))))
 
+(define-public rust-from-variants-0.6
+  (package
+    (name "rust-from-variants")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "from_variants" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1qx4jmwljwmcdfc998ndf7iz8wyg7lmlc3vl3fy812f9lfqiw6i2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-from-variants-impl" ,rust-from-variants-impl-0.6))))
+    (home-page "https://github.com/TedDriggs/from_variants")
+    (synopsis "Macro to generate conversions for newtype enums")
+    (description
+     "This package provides a Rust macro to automatically generate
+conversions for newtype enums.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-from-variants-impl-0.6
   (package
     (name "rust-from-variants-impl")
-- 
2.41.0