[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
- [bug#69257] [PATCH 000/228 rust-team] WIP: Add GNOME Fractal dependencies., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 001/228] gnu: Place rust-rtnetlink-0.14 in alphabetical order., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 005/228] gnu: Add rust-backoff-0.4.,
Herman Rimm <=
- [bug#69257] [PATCH 009/228] gnu: Add rust-proptest-derive-0.4., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 006/228] gnu: Add rust-cfg-vis-0.3., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 011/228] gnu: Add rust-imbl-sized-chunks-0.1., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 014/228] gnu: Place rust-thousands-0.2 in alphabetical order., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 017/228] gnu: Add rust-branches-0.1., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 008/228] gnu: Add rust-compiletest-rs-0.9., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 020/228] gnu: Place rust-rpassword-5 in alphabetical order., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 022/228] gnu: Place rust-rpassword-7 in alphabetical order., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 030/228] gnu: Add rust-eyeball-0.8., Herman Rimm, 2024/02/18
- [bug#69257] [PATCH 033/228] gnu: Add rust-k256-0.13., Herman Rimm, 2024/02/18