diff mbox series

[bug#74234,PATCHv2,rust-team,11/20] gnu: Add rust-enum-ordinalize-derive-4.

Message ID fc1e80b42da87b0e90fe51393c7b04078419a632.1731018436.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74234,PATCHv2,rust-team,01/20] gnu: Add rust-ashpd-0.6. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-enum-ordinalize-derive-4): New variable.

Change-Id: I5f56252a4eb4626ba6d2cece964c975e341a7280
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4d89af711f..0ef313a442 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -24885,6 +24885,31 @@  (define-public rust-enumflags2-derive-0.6
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-enum-ordinalize-derive-4
+  (package
+    (name "rust-enum-ordinalize-derive")
+    (version "4.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "enum-ordinalize-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zy53fabazimwv5cl0366k834ybixzl84lxj9mfavbnlfn532a0d"))))
+    (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://magiclen.org/enum-ordinalize")
+    (synopsis
+     "Macro that enables construction of enums from an ordinal value")
+    (description
+     "This crate provides a procedural macro that enables enums to not only
+obtain the ordinal values of their variants but also allows for the
+construction of enums from an ordinal value.")
+    (license license:expat)))
+
 (define-public rust-enumset-1
   (package
     (name "rust-enumset")