Subject: [PATCH v7 44/44] gnu: Add rust-goldenfile-1.

From: Jordan Moore <[email-masked]>
Date: Sat, 11 Jan 2025 10:11:34 -0500

* gnu/packages/crates-io.scm (rust-goldenfile-1): New variable.

Change-Id: Ie4f38815a1e9ba575e1ff50ad70cf94e8a157023
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b6c75f72fe..e0c563d396 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -30461,6 +30461,29 @@ (define-public rust-goblin-0.7
         ("rust-plain" ,rust-plain-0.2)
         ("rust-scroll" ,rust-scroll-0.11))))))
 
+(define-public rust-goldenfile-1
+  (package
+    (name "rust-goldenfile")
+    (version "1.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "goldenfile" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0a74vvxyrkj0gyv5x01cmsmz5hrggskqmkk543wz6z2ky31g2bv7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-scopeguard" ,rust-scopeguard-1)
+                       ("rust-similar-asserts" ,rust-similar-asserts-1)
+                       ("rust-tempfile" ,rust-tempfile-3)
+                       ("rust-yansi" ,rust-yansi-1))))
+    (home-page "https://github.com/calder/rust-goldenfile")
+    (synopsis "Simple goldenfile testing library")
+    (description
+     "Testing library that compares generated files against prior generated golden files.")
+    (license license:expat)))
+
 (define-public rust-graphql-client-0.14
   (package
     (name "rust-graphql-client")
-- 
2.46.0