Subject: [bug#66842] [PATCH 06/39] gnu: Add rust-windows-0.48.

From: Jaeme Sifat <[email-masked]>
Date: Mon, 30 Oct 2023 22:52:10 -0400

* gnu/packages/crates-io.scm (rust-windows-0.48): New variable.

Change-Id: I7b20fb2784b126275b4a81261e031bfb53fcdc1d
---
 gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++------------
 1 file changed, 28 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 50c8f98b19..97779b4623 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83005,8 +83005,33 @@ (define-public rust-wincolor-0.1
        #:cargo-inputs
        (("rust-winapi" ,rust-winapi-0.3))))))
 
+(define-public rust-windows-0.48
+  (package
+    (name "rust-windows")
+    (version "0.48.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "windows" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03vh89ilnxdxdh0n9np4ns4m10fvm93h3b0cc05ipg3qq1mqi1p6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-windows-implement" ,rust-windows-implement-0.48)
+                       ("rust-windows-interface" ,rust-windows-interface-0.48)
+                       ("rust-windows-targets" ,rust-windows-targets-0.48))))
+    (home-page "https://github.com/microsoft/windows-rs")
+    (synopsis "Rust for Windows")
+    (description "The windows crate lets you call any Windows API past,
+present, and future using code generated on the fly directly from the metadata
+describing the API and right into your Rust package where you can call them as
+if they were just another Rust module.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-windows-0.46
   (package
+    (inherit rust-windows-0.48)
     (name "rust-windows")
     (version "0.46.0")
     (source (origin
@@ -83016,19 +83041,10 @@ (define-public rust-windows-0.46
               (sha256
                (base32
                 "098crdz9gxgy3614ygznqqhn28q097r498b3rg35584nd8gb9b6d"))))
-    (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-windows-implement" ,rust-windows-implement-0.46)
-        ("rust-windows-interface" ,rust-windows-interface-0.46)
-        ("rust-windows-targets" ,rust-windows-targets-0.42))))
-    (home-page "https://github.com/microsoft/windows-rs")
-    (synopsis "Rust for Windows")
-    (description "The windows crate lets you call any Windows API past,
-present, and future using code generated on the fly directly from the metadata
-describing the API and right into your Rust package where you can call them as
-if they were just another Rust module.")
-    (license (list license:expat license:asl2.0))))
+     `(#:cargo-inputs (("rust-windows-implement" ,rust-windows-implement-0.46)
+                       ("rust-windows-interface" ,rust-windows-interface-0.46)
+                       ("rust-windows-targets" ,rust-windows-targets-0.42))))))
 
 (define-public rust-windows-0.32
   (package
-- 
2.34.1