guix-patches
[Top][All Lists]
Advanced

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

[bug#69257] [PATCH 005/228] gnu: Add rust-backoff-0.4.


From: Herman Rimm
Subject: [bug#69257] [PATCH 005/228] gnu: Add rust-backoff-0.4.
Date: Sun, 18 Feb 2024 22:02:03 +0100

* gnu/packages/crates-io.scm (rust-backoff-0.4): Add variable.
---
 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 0bcf3ad231..070f81a59e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5570,6 +5570,39 @@ (define-public rust-az-1
     (description "This crate provides casts and checked casts.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-backoff-0.4
+  (package
+    (name "rust-backoff")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "backoff" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1h80d9xn5wngxdgza2m8w4x1kyhk0x6k9ydvsj50j2pcn6fdnbdn"))
+       (modules '((guix build utils)))
+       ;; XXX: Doctest hangs for no apparent reason.
+       (snippet '(substitute* "src/lib.rs"
+                              (("```rust\n")
+                               "```rust,no_run\n")))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-async-std" ,rust-async-std-1)
+                       ("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-getrandom" ,rust-getrandom-0.2)
+                       ("rust-instant" ,rust-instant-0.1)
+                       ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs (("rust-reqwest" ,rust-reqwest-0.11))))
+    (native-inputs (list pkg-config))
+    (inputs (list openssl))
+    (home-page "https://github.com/ihrwein/backoff";)
+    (synopsis "Retry operations with exponential backoff policy")
+    (description "Retry operations with exponential backoff policy.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-backon-0.4
   (package
     (name "rust-backon")
-- 
2.41.0






reply via email to

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