guix-commits
[Top][All Lists]
Advanced

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

28/37: gnu: Add rust-mock-instant-0.2.


From: guix-commits
Subject: 28/37: gnu: Add rust-mock-instant-0.2.
Date: Thu, 9 Mar 2023 12:12:07 -0500 (EST)

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

commit 0bc7e25db947313816e4978fa71b2526e9caf20e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 17:54:12 2023 +0200

    gnu: Add rust-mock-instant-0.2.
    
    * gnu/packages/crates-io.scm (rust-mock-instant-0.2): New variable.
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 063c8224e6..c00599c557 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35278,6 +35278,25 @@ IOCP and Async I/O abstractions.")
        #:cargo-development-inputs
        (("rust-rand" ,rust-rand-0.3))))))
 
+(define-public rust-mock-instant-0.2
+  (package
+    (name "rust-mock-instant")
+    (version "0.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "mock-instant" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 
"0vg0kmz96zazjdq57l57nm24mc2in57y090ywcq827xq8fi2jzki"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1))))
+    (home-page "https://github.com/museun/mock_instant";)
+    (synopsis "Mock an std::time::Instant")
+    (description
+     "This package provides a simple way to mock an std::time::Instant in 
rust.")
+    (license license:bsd-0)))
+
 (define-public rust-mockall-0.11
   (package
     (name "rust-mockall")



reply via email to

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