From 916bbf53a9a44eb8922f4cdd7dfdc4d7006f99a0 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 4 Jun 2021 21:24:44 -0400 Subject: gnu: Add rust-fallible-collections-0.4. * gnu/packages/crates-io.scm (rust-fallible-collections-0.4): New variable. --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5762a0da0c..8b51018963 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -14281,6 +14281,34 @@ traits but without the boilerplate.") "Crate for mimicking simd crate on stable Rust.") (license (list license:asl2.0 license:expat)))) +(define-public rust-fallible-collections-0.4 + (package + (name "rust-fallible-collections") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "fallible_collections" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1sk6ckixvf0pax47qgs8lfd2zi2gmyg1xgk1k7z2qgalhaaidnaa")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-hashbrown" ,rust-hashbrown-0.9)))) + (home-page "https://github.com/vcombey/fallible_collections") + (synopsis "Fallible collections implementation in Rust") + (description "This library extends the Rust standard collections to return +a result when an allocation error occurs, ala +@url{https://github.com/rust-lang/rfcs/blob/master/text/2116-alloc-me-maybe.md,RFC +2116}. The API currently proposes a fallible interface for @code{Vec}, +@code{Box}, @code{Arc}, @code{Btree} and @code{Rc}, as well as a +@code{TryClone} trait wich is implemented for primitive Rust traits and a +fallible format macro.") + (license (list license:expat license:asl2.0)))) + (define-public rust-failure-0.1 (package (name "rust-failure") -- cgit 1.4.1