diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-06-04 21:24:44 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-06-06 02:38:27 -0400 |
commit | 916bbf53a9a44eb8922f4cdd7dfdc4d7006f99a0 (patch) | |
tree | 4a94dd43e98049e2f1e2e5f5319c96c68a8f5947 /gnu | |
parent | 636e478bacd01ddc1050e416430f1a6219ecfa6c (diff) | |
download | guix-916bbf53a9a44eb8922f4cdd7dfdc4d7006f99a0.tar.gz |
gnu: Add rust-fallible-collections-0.4.
* gnu/packages/crates-io.scm (rust-fallible-collections-0.4): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 28 |
1 files changed, 28 insertions, 0 deletions
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") |