Subject: Re: [bug#49451] [PATCH 14/20] gnu: Add rust-mockall

From: Xinglu Chen <[email-masked]>
Date: Sun, 01 Aug 2021 12:20:00 +0200

On Sun, Jul 11 2021, southerntofu via Guix-patches via wrote:

> ---
>  gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index 2a9e477aaf..0e57d3c145 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -26740,6 +26740,39 @@ IOCP and Async I/O abstractions.")
>         #:cargo-development-inputs
>         (("rust-rand" ,rust-rand-0.3))))))
>  
> +(define-public rust-mockall-0.9
> +  (package
> +    (name "rust-mockall")
> +    (version "0.9.1")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (crate-uri "mockall" version))
> +        (file-name
> +          (string-append name "-" version ".tar.gz"))
> +        (sha256
> +          (base32
> +            "1m9kpv4523503v48ahyzk9g2rabvbjl70mlbkc8mkfzr4fni9mhq"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +      `(#:skip-build?
> +        #t
> +        #:cargo-inputs
> +        (("rust-cfg-if" ,rust-cfg-if-1)
> +         ("rust-downcast" ,rust-downcast-0.10)
> +         ("rust-fragile" ,rust-fragile-1)
> +         ("rust-lazy-static" ,rust-lazy-static-1)
> +         ("rust-mockall-derive" ,rust-mockall-derive-0.9)
> +         ("rust-predicates" ,rust-predicates-1)
> +         ("rust-predicates-tree" ,rust-predicates-tree-1))))
> +    (home-page "https://github.com/asomers/mockall")
> +    (synopsis
> +      "Powerful mock object library for Rust
> +")

No need for a newline.

> +    (description
> +      "This package provides a powerful mock object library for Rust
> +")

Same as above, and missing period.