guix-commits
[Top][All Lists]
Advanced

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

15/311: gnu: Add rust-libloading-0.8.


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

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

commit 07bf8da89afbb6a899437d48ff6388539f261420
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Oct 23 22:35:54 2023 +0300

    gnu: Add rust-libloading-0.8.
    
    * gnu/packages/crates-io.scm (rust-libloading-0.8): New variable.
    (rust-libloading-0.7): Inherit from rust-libloading-0.8.
    
    Change-Id: I2ff48e71770d3b34cdb70f72125e255f740458a8
---
 gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++----------
 1 file changed, 30 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b951481d87..cc4eecd9a8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37324,19 +37324,17 @@ library.")
         ("rust-openssl-sys" ,rust-openssl-sys-0.9)
         ("rust-pkg-config" ,rust-pkg-config-0.3))))))
 
-(define-public rust-libloading-0.7
+(define-public rust-libloading-0.8
   (package
     (name "rust-libloading")
-    (version "0.7.4")
+    (version "0.8.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "libloading" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32
-         "17wbccnjvhjd9ibh019xcd8kjvqws8lqgq86lqkpbgig7gyq0wxn"))
+        (base32 "0q812zvfag4m803ak640znl6cf8ngdd0ilzky498r6pwvmvbcwf5"))
        (modules '((guix build utils)))
        (snippet
         '(begin (for-each delete-file
@@ -37345,18 +37343,40 @@ library.")
     (arguments
      `(#:cargo-inputs
        (("rust-cfg-if" ,rust-cfg-if-1)
-        ("rust-winapi" ,rust-winapi-0.3))
+        ("rust-windows-sys" ,rust-windows-sys-0.48))
        #:cargo-development-inputs
        (("rust-libc" ,rust-libc-0.2)
-        ("rust-static-assertions"
-         ,rust-static-assertions-1))))
-    (inputs (list rust-cfg-if-1 rust-winapi-0.3))
+        ("rust-static-assertions" ,rust-static-assertions-1))))
     (home-page "https://github.com/nagisa/rust_libloading/";)
     (synopsis "Safer binding to dynamic library loading utilities")
     (description "This package provides a safer binding to dynamic library
 loading utilities.")
     (license license:isc)))
 
+(define-public rust-libloading-0.7
+  (package
+    (inherit rust-libloading-0.8)
+    (name "rust-libloading")
+    (version "0.7.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libloading" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "17wbccnjvhjd9ibh019xcd8kjvqws8lqgq86lqkpbgig7gyq0wxn"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (for-each delete-file
+                          (find-files "tests" "\\.dll$"))))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-static-assertions" ,rust-static-assertions-1))))))
+
 (define-public rust-libloading-0.6
   (package
     (inherit rust-libloading-0.7)



reply via email to

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