Subject: [bug#75677] [PATCH rust-team 09/89] gnu: rust-winreg-0.15: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sun, 19 Jan 2025 17:48:43 -0500

* gnu/packages/crates-windows.scm (rust-winreg-0.15): New variable.
---
 gnu/packages/crates-windows.scm | 35 ++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index 2f212190dd..8f4dbf2625 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2024 Jordan Moore <[email-masked]>
 ;;; Copyright © 2024 Murilo <[email-masked]>
 ;;; Copyright © 2024 normally_js <[email-masked]>
+;;; Copyright © 2025 Aaron Covrig <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3154,10 +3155,42 @@ (define-public rust-winreg-0.50
                                    ("rust-serde-derive" ,rust-serde-derive-1)
                                    ("rust-tempfile" ,rust-tempfile-3))))))
 
-(define-public rust-winreg-0.10
+(define-public rust-winreg-0.15
   (package
     (inherit rust-winreg-0.50)
     (name "rust-winreg")
+    (version "0.15.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "winreg" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1smcgljflh3xa37rasrgwdxmx8z1g6awp4y8dq5a81hcr0zjx34w"))
+       (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-winapi" ,rust-winapi-0.3)
+        ("rust-chrono" ,rust-chrono-0.4)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-rand" ,rust-rand-0.3)
+        ("rust-serde-bytes" ,rust-serde-bytes-0.11)
+        ("rust-serde-transcode" ,rust-serde-transcode-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-tempfile" ,rust-tempfile-3))))))
+
+(define-public rust-winreg-0.10
+  (package
+    (inherit rust-winreg-0.15)
+    (name "rust-winreg")
     (version "0.10.1")
     (source
      (origin
-- 
2.47.1