Subject: [bug#69257] [PATCH rust-team v3 42/75] gnu: Add rust-g2gen-1.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:14 +0200

* gnu/packages/crates-io.scm (rust-g2gen-1): Add variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d518241d13..fc071ecbb6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29243,6 +29243,30 @@ (define-public rust-fxhash-0.2
 derived from an internal hasher used in FireFox and Rustc.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-g2gen-1
+  (package
+    (name "rust-g2gen")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "g2gen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03l243pnj9pabd0pi0jcf4fyrxxhddx8ixv31gchs9gwn8jpcb7w"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-g2poly" ,rust-g2poly-1)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/WanzenBug/g2p")
+    (synopsis "Macro to create finite field arithmetic types")
+    (description
+     "This package provides a macro to create types that implement fast
+finite field arithmetic.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-g2poly-1
   (package
     (name "rust-g2poly")
-- 
2.41.0