[bug#74743,rust-team,v2,36/68] gnu: rust-enum-table-derive-0.2: New variable.

Message ID 20250319011932.1899508-37-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted rust-* package upgrades |

Commit Message

Aaron Covrig March 19, 2025, 1:18 a.m. UTC
  * gnu/packages/crates-io.scm (rust-enum-table-derive-0.2): New variable.

Signed-off-by: Aaron Covrig <aaron.covrig.us@ieee.org>
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
  

Patch

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")