Subject: [PATCH rust-team v2 07/81] gnu: rust-winreg-0.53: New variable.

From: Aaron Covrig <[email-masked]>
Date: Fri, 7 Mar 2025 22:33:13 -0500

* gnu/packages/crates-windows.scm (rust-winreg-0.53): New variable.
---
 gnu/packages/crates-windows.scm | 36 ++++++++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index bc06a978be..af4a66eb3c 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -3063,17 +3063,17 @@ (define-public rust-windows-x86-64-msvc-0.28
                (base32
                 "17z8q25pd3dp6b84qm9nlayd3ym78sbryxlqmgcxvz9vpmy8qarz"))))))
 
-(define-public rust-winreg-0.52
+(define-public rust-winreg-0.53
   (package
     (name "rust-winreg")
-    (version "0.52.0")
+    (version "0.53.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "winreg" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "19gh9vp7mp1ab84kc3ag48nm9y7xgjhh3xa4vxss1gylk1rsaxx2"))
+        (base32 "1y9g6ixv2fjmvvpwpyskdhn1czv1s6jdr2by8x4vkicgkx47p949"))
        (snippet
         #~(begin (use-modules (guix build utils))
                  (substitute* "Cargo.toml"
@@ -3098,6 +3098,36 @@ (define-public rust-winreg-0.52
      "This package provides Rust bindings to MS Windows Registry API.")
     (license license:expat)))
 
+(define-public rust-winreg-0.52
+  (package
+    (inherit rust-winreg-0.53)
+    (name "rust-winreg")
+    (version "0.52.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "winreg" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19gh9vp7mp1ab84kc3ag48nm9y7xgjhh3xa4vxss1gylk1rsaxx2"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 (substitute* "Cargo.toml"
+                   (("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                    (string-append "\"^" version)))))))
+    (arguments
+     `(#:skip-build? #t ; OS not supported
+       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-windows-sys" ,rust-windows-sys-0.48))
+       #:cargo-development-inputs (("rust-rand" ,rust-rand-0.3)
+                                   ("rust-serde-transcode" ,rust-serde-transcode-1)
+                                   ("rust-serde-bytes" ,rust-serde-bytes-0.11)
+                                   ("rust-serde-derive" ,rust-serde-derive-1)
+                                   ("rust-serde-json" ,rust-serde-json-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-winreg-0.51
   (package
     (inherit rust-winreg-0.52)
-- 
2.48.1