guix-commits
[Top][All Lists]
Advanced

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

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


From: guix-commits
Subject: 22/436: gnu: Add rust-windows-0.48.
Date: Sun, 5 Nov 2023 05:27:53 -0500 (EST)

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

commit ca479fdae411e9d537feb41e2619e5ab21904fce
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 39fc5b1797..2c685348c2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -83057,8 +83057,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
@@ -83068,19 +83094,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]