unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Steve George <steve@futurile.net>
To: 61565@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>,
	Steve George <steve@futurile.net>
Subject: [bug#61565] [PATCH 5/5] gnu: Add rust-mockall.
Date: Thu, 16 Feb 2023 22:57:42 +0000	[thread overview]
Message-ID: <20230216225742.106916-5-steve@futurile.net> (raw)
In-Reply-To: <20230216225742.106916-1-steve@futurile.net>

* gnu/packages/crates-io.scm (rust-mockall-0.11): New variable.

---

 gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9ce18ea1f0..cb19edaf83 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33760,6 +33760,42 @@ (define-public rust-mockall-double-0.3
 select the mock struct at compile time.  Used with the Mockall crate.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-mockall-0.11
+  (package
+    (name "rust-mockall")
+    (version "0.11.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "mockall" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0k3g3xxf195vsnzmwza047dv89zlg6h5yj5774wjlndgpdvf8han"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-downcast" ,rust-downcast-0.11)
+        ("rust-fragile" ,rust-fragile-1)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-mockall-derive" ,rust-mockall-derive-0.11)
+        ("rust-predicates" ,rust-predicates-2)
+        ("rust-predicates-tree" ,rust-predicates-tree-1))
+       #:cargo-development-inputs
+       (("rust-async-trait" ,rust-async-trait-0.1)
+        ("rust-futures" ,rust-futures-0.3)
+        ("rust-mockall-double" ,rust-mockall-double-0.3)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-tracing" ,rust-tracing-0.1))))
+    (home-page "https://github.com/asomers/mockall")
+    (synopsis "Powerful mock object library for Rust")
+    (description "Mockall is a rich mocking library with a terse and ergonomic
+interface.  It is written in 100% safe and stable Rust.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-mockall-derive-0.11
   (package
     (name "rust-mockall-derive")
-- 
2.39.1





  parent reply	other threads:[~2023-02-16 22:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-16 22:57 [bug#61562] [PATCH 1/5] gnu: Add rust-pretty-assertions-0.5 Steve George
2023-02-16 22:57 ` [bug#61563] [PATCH 2/5] gnu: add rust-downcast Steve George
2023-02-16 22:57 ` [bug#61564] [PATCH 3/5] gnu: Add rust-mockall-double Steve George
2023-02-16 22:57 ` [bug#61562] [PATCH 4/5] gnu: Add rust-mockall-derive Steve George
2023-02-16 22:57 ` Steve George [this message]
2023-02-16 23:18   ` bug#61565: (no subject) Steve George
2023-02-20 12:02 ` [bug#61565] [PATCH 1/5] gnu: Add rust-pretty-assertions-0.5 Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230216225742.106916-5-steve@futurile.net \
    --to=steve@futurile.net \
    --cc=61565@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).