Subject: [bug#50368] [PATCH 6/9] gnu: Add rust-libloading-0.7.

From: Xinglu Chen <[email-masked]>
Date: Sat, 04 Sep 2021 21:23:46 +0200

On Sat, Sep 04 2021, phodina via Guix-patches via wrote:

> * 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 e0b36cef51..6f82d15cbe 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -24315,6 +24315,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"))

Nit: Newline isn’t necessary.

> +        (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/")

Likewise.

> +    (synopsis
> +      "Safer binding to platformâ\x80\x99s dynamic library loading utilities")

“platformâ\x80\x99s” looks a bit cryptic, and isn’t mentioned anywhere
in the project README.

> +    (description
> +      "This package provides a safer binding to platformâ\x80\x99s dynamic
> +library loading utilities")

Likewise.