Subject: [PATCH 02/49] gnu: Add rust-backon-0.4.

From: Herman Rimm <[email-masked]>
Date: Tue, 30 Jan 2024 16:24:45 +0100

* gnu/packages/crates-io.scm (rust-backon-0.4): Add variable.

Change-Id: If08111dac5f818d43dd3fee7812819e7eae7531d
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9bf6a1f3f4..e6fa47b844 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4826,6 +4826,32 @@ (define-public rust-az-1
     (description "This crate provides casts and checked casts.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-backon-0.4
+  (package
+    (name "rust-backon")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "backon" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1yfwd1idd5hf6aq2p0rbx4cv0n450canazr6b8cb42qjnabn26hc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-fastrand" ,rust-fastrand-1)
+                       ("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-pin-project" ,rust-pin-project-1)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1)
+                                   ("rust-reqwest" ,rust-reqwest-0.11)
+                                   ("rust-tokio" ,rust-tokio-1))))
+    (home-page "")
+    (synopsis "Retry with backoff without effort")
+    (description "This package provides a retry with backoff without
+effort.")
+    (license license:asl2.0)))
+
 (define-public rust-backtrace-0.3
   (package
     (name "rust-backtrace")
-- 
2.41.0