Subject: [PATCH 054/156] gnu: Add rust-ff-0.12.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:31 +0100

* gnu/packages/crates-io.scm (rust-ff-0.12): New variable.

Change-Id: Iaa46eb5a0cc9f3150633d0024682729326044e0d
---
 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 1aa022b8212..d691e496a09 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26087,6 +26087,30 @@ (define-public rust-ff-derive-0.12
     (description
      "Procedural macro library used to build custom prime field implementations")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-ff-0.12
+  (package
+    (name "rust-ff")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ff" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0q3imz4m3dj2cy182i20wa8kbclgj13ddfngqb2miicc6cjzq4yh"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitvec" ,rust-bitvec-1)
+                       ("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-ff-derive" ,rust-ff-derive-0.12)
+                       ("rust-rand-core" ,rust-rand-core-0.6)
+                       ("rust-subtle" ,rust-subtle-2))))
+    (home-page "https://github.com/zkcrypto/ff")
+    (synopsis "Library for building and interfacing with finite fields")
+    (description "Library for building and interfacing with finite fields")
+    (license (list license:expat license:asl2.0))))
 (define-public rust-fiat-crypto-0.1
   (package
     (name "rust-fiat-crypto")
-- 
2.41.0