Subject: [bug#75127] [PATCH rust-team v3 21/67] gnu: Add rust-atomicwrites-0.4.

From: Jordan Moore <[email-masked]>
Date: Thu, 26 Dec 2024 22:37:40 -0500

* gnu/packages/crates-io.scm (rust-atomicwrites-0.4): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 73d37e94a6..606fa9a94d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6498,6 +6498,27 @@ (define-public rust-atomic-write-file-0.1
     (description "Write files atomically to a file system.")
     (license license:bsd-3)))
 
+(define-public rust-atomicwrites-0.4
+  (package
+    (name "rust-atomicwrites")
+    (version "0.4.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "atomicwrites" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1qrkr9jz43y8g767c3249g4w4pzv43bk3hyza66y6pv43f6vpw9y"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-rustix" ,rust-rustix-0.38)
+                       ("rust-tempfile" ,rust-tempfile-3)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))))
+    (home-page "https://github.com/untitaker/rust-atomicwrites")
+    (synopsis "Atomic file-writes")
+    (description "This package provides Atomic file-writes.")
+    (license license:expat)))
+
 (define-public rust-atomig-0.4
   (package
     (name "rust-atomig")
-- 
2.46.0