Subject: [PATCH v2 6/9] gnu: Add rust-libloading-0.7.

From: phodina <[email-masked]>
Date: Wed, 15 Sep 2021 19:19:29 +0000

* gnu/packages/crates-io.scm (rust-libloading-0.7): New variable.

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 107227b1ec..d458ad953e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -24511,8 +24511,7 @@ library.")
      (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
          "0sidr67nsa693mqrqgk2np3bkqni0778yk147xncspy171jdk13g"))))
@@ -24556,6 +24555,37 @@ loading utilities.")
      `(("rust-cfg-if" ,rust-cfg-if-1)
        ("rust-winapi" ,rust-winapi-0.3)))))

+(define-public rust-libloading-0.7
+  (package
+    (name "rust-libloading")
+    (version "0.7.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "libloading" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0sidr67nsa693mqrqgk2np3bkqni0778yk147xncspy171jdk13g"))))
+    (build-system cargo-build-system)
+    (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))))
+    (home-page
+      "https://github.com/nagisa/rust_libloading/")
+    (synopsis
+      "Safer binding to platform dynamic library loading utilities")
+    (description
+      "This package provides a safer binding to platform dynamic
+library loading utilities")
+    (license license:isc)))
+
 (define-public rust-libloading-0.5
   (package
     (name "rust-libloading")
--
2.32.0