summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-03-09 17:54:12 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:23 +0300
commitd3b10008295d118e93df378efa906b77f373c708 (patch)
treea592d2efb890201a738438cf579b4187e2a54957 /gnu/packages
parent1b231ece31781eb17d3b5432645915ae47a7ab83 (diff)
downloadguix-d3b10008295d118e93df378efa906b77f373c708.tar.gz
gnu: Add rust-mock-instant-0.2.
* gnu/packages/crates-io.scm (rust-mock-instant-0.2): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f3180cd909..bbd4452a0a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35447,6 +35447,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")