Subject: [PATCH 3/4] gnu: Add rust-tempfile-3.1.

From: jgart <[email-masked]>
Date: Sun, 5 Dec 2021 02:01:27 -0500

* gnu/packages/crates-io.scm (rust-tempfile-3.1): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 73244fdd6e..ad90a2d4a4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -53408,6 +53408,34 @@ (define-public rust-tempdir-0.3
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-tempfile-3.1
+  (package
+    (name "rust-tempfile")
+    (version "3.1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "tempfile" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "1a9cfdqw70n7bcnkx05aih9xdba8lqazmqlkjpkmn2la6gcj8vks"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-cfg-if" ,rust-cfg-if-0.1)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-rand" ,rust-rand-0.7)
+         ("rust-redox-syscall" ,rust-redox-syscall-0.1)
+         ("rust-remove-dir-all" ,rust-remove-dir-all-0.5)
+         ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "http://stebalien.com/projects/tempfile-rs")
+    (synopsis "A library for managing temporary files and directories.")
+    (description
+      "This package provides a library for managing temporary files and directories.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-tempfile-3
   (package
     (name "rust-tempfile")
-- 
2.34.0