guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

22/311: gnu: Add rust-windows-0.48.


From: guix-commits
Subject: 22/311: gnu: Add rust-windows-0.48.
Date: Sat, 28 Oct 2023 16:37:25 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 9beffd56e5b77db8e97f58ccb505d3e987bd22c0
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 24 08:31:17 2023 +0300

    gnu: Add rust-windows-0.48.
    
    * gnu/packages/crates-io.scm (rust-windows-0.48): New variable.
    (rust-windows-0.46): Inherit from rust-windows-0.48.
    
    Change-Id: I748f8f6d387607271d76713990a917f24398e342
---
 gnu/packages/crates-io.scm | 36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e36ae45692..de02f77a4f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83042,8 +83042,34 @@ color in a Windows console.")
        #: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
@@ -83053,19 +83079,11 @@ color in a Windows console.")
               (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))))
+        ("rust-windows-targets" ,rust-windows-targets-0.42))))))
 
 (define-public rust-windows-0.32
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]