Subject: [PATCH rust-team v3 24/73] gnu: Add rust-windows-core-0.56.

From: Aaron Covrig <[email-masked]>
Date: Mon, 2 Dec 2024 22:00:04 -0500

From: Jordan Moore <[email-masked]>

* gnu/packages/crates-windows.scm (rust-windows-core-0.56): New variable.
---
 gnu/packages/crates-windows.scm | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index f28d22ba03..6975ad3631 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -1937,9 +1937,29 @@ (define-public rust-windows-core-0.57
        #:cargo-development-inputs
        (("rust-windows-bindgen" ,rust-windows-bindgen-0.57))))))
 
+(define-public rust-windows-core-0.56
+  (package
+    (inherit rust-windows-core-0.57)
+    (name "rust-windows-core")
+    (version "0.56.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "windows-core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19pj57bm0rzhlk0ghrccd3i5zvh0ghm52f8cmdc8d3yhs8pfb626"))))
+    (arguments
+     `(#:cargo-inputs (("rust-windows-implement" ,rust-windows-implement-0.56)
+                       ("rust-windows-interface" ,rust-windows-interface-0.56)
+                       ("rust-windows-result" ,rust-windows-result-0.1)
+                       ("rust-windows-targets" ,rust-windows-targets-0.52))
+       #:cargo-development-inputs
+       (("rust-windows-bindgen" ,rust-windows-bindgen-0.56))))))
+
 (define-public rust-windows-core-0.52
   (package
-    (inherit rust-windows-core-0.58)
+    (inherit rust-windows-core-0.56)
     (name "rust-windows-core")
     (version "0.52.0")
     (source
@@ -1951,11 +1971,7 @@ (define-public rust-windows-core-0.52
         (base32 "1nc3qv7sy24x0nlnb32f7alzpd6f72l4p24vl65vydbyil669ark"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-windows-targets" ,rust-windows-targets-0.52))))
-    (home-page "https://github.com/microsoft/windows-rs")
-    (synopsis "Rust for Windows")
-    (description "This package provides the core of Rust for Windows.")
-    (license (list license:expat license:asl2.0))))
+     `(#:cargo-inputs (("rust-windows-targets" ,rust-windows-targets-0.52))))))
 
 (define-public rust-windows-i686-gnu-0.52
   (package
-- 
2.47.0