Subject: [PATCH rust-team v2 36/68] gnu: rust-enum-table-derive-0.2: New variable.

From: Aaron Covrig <[email-masked]>
Date: Tue, 18 Mar 2025 21:18:54 -0400

* gnu/packages/crates-io.scm (rust-enum-table-derive-0.2): New variable.

Signed-off-by: Aaron Covrig <[email-masked]>
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 09191b6402..58651e64c5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -23867,6 +23867,33 @@ (define-public rust-enum-ordinalize-derive-4
 construction of enums from an ordinal value.")
     (license license:expat)))
 
+(define-public rust-enum-table-derive-0.2
+  (package
+    (name "rust-enum-table-derive")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "enum-table-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1m7nlijkyqiarb8dl9wgy26j5clzl7cwlzrnqipipgiapp4c2pcd"))))
+    (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/moriyoshi-kasuga/enum-table")
+    (synopsis "Derive macro for enum-table")
+    (description "@dfn{enum-table} is a lightweight and efficient Rust library
+designed for mapping enums to values.  It provides a fast and type-safe
+alternative to using HashMap for enum keys, ensuring compile-time safety and
+performance benefits.
+
+You can create an EnumTable struct at const time, ensuring that values are
+returned reliably with get, and there is no runtime check.")
+    (license license:expat)))
+
 (define-public rust-enumset-1
   (package
     (name "rust-enumset")
-- 
2.48.1