From 392808e653c192bd1b024512d4140b67b1226d95 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 11 Mar 2024 13:41:38 +0200 Subject: [PATCH] gnu: Add rust-fallible-iterator-0.3. * gnu/packages/crates-io.scm (rust-fallible-iterator-0.3): New variable. (rust-fallible-iterator-0.2): Inherit from rust-fallible-iterator-0.3. Change-Id: Iddafe2cfbe14f0202837c2103cb28c9b5a9b0d7c --- gnu/packages/crates-io.scm | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 8ea48fda28..4595443f8b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -22774,8 +22774,29 @@ fallible format macro.") (description "Derives for the failure crate.") (license (list license:asl2.0 license:expat)))) +(define-public rust-fallible-iterator-0.3 + (package + (name "rust-fallible-iterator") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "fallible-iterator" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ja6l56yka5vn4y4pk6hn88z0bpny7a8k1919aqjzp0j1yhy9k1a")))) + (build-system cargo-build-system) + (home-page "https://github.com/sfackler/rust-fallible-iterator") + (synopsis "Fallible iterator traits") + (description "If the @code{std} or @code{alloc} features are enabled, this +crate provides implementations for @code{Box}, @code{Vec}, @code{BTreeMap}, and +@code{BTreeSet}. If the @code{std} feature is enabled, this crate additionally +provides implementations for @code{HashMap} and @code{HashSet}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-fallible-iterator-0.2 (package + (inherit rust-fallible-iterator-0.3) (name "rust-fallible-iterator") (version "0.2.0") (source @@ -22784,17 +22805,7 @@ fallible format macro.") (uri (crate-uri "fallible-iterator" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 - "1xq759lsr8gqss7hva42azn3whgrbrs2sd9xpn92c5ickxm1fhs4")))) - (build-system cargo-build-system) - (home-page "https://github.com/sfackler/rust-fallible-iterator") - (synopsis "Fallible iterator traits") - (description "If the @code{std} or @code{alloc} features are enabled, this -crate provides implementations for @code{Box}, @code{Vec}, @code{BTreeMap}, and -@code{BTreeSet}. If the @code{std} feature is enabled, this crate additionally -provides implementations for @code{HashMap} and @code{HashSet}.") - (license (list license:asl2.0 - license:expat)))) + (base32 "1xq759lsr8gqss7hva42azn3whgrbrs2sd9xpn92c5ickxm1fhs4")))))) (define-public rust-fallible-streaming-iterator-0.1 (package