diff options
author | Vinicius Monego <monego@posteo.net> | 2021-07-08 04:08:33 +0000 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-07-15 15:55:59 +0300 |
commit | d7bcdd61c560e14b04c6a59d7cb223b8a868b21f (patch) | |
tree | 73244e01e0dc991362f5c25f70b9c61510df3cd0 /gnu | |
parent | a8090020fe763678b2541cde62c51b21b9f85f2c (diff) |
gnu: Add rust-unwrap-1.
* gnu/packages/crates-io.scm (rust-unwrap-1): New variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e831bcca37..dbbc01bb63 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -52578,6 +52578,30 @@ untrusted inputs in Rust.") (sha256 (base32 "0byf88b7ca1kb5aap8f6npp6xncvg95dnma8ipmnmd4n9r5izkam")))))) +(define-public rust-unwrap-1 + (package + (name "rust-unwrap") + (version "1.2.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "unwrap" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "03y24m63l85ng23z19bg7vwn6g1h1asg6ldyqwifca23sy6n8cvy")))) + (build-system cargo-build-system) + (home-page "https://github.com/canndrew/unwrap") + (synopsis "unwrap! and unwrap_err! macros") + (description + "This crate provides two macros, @code{unwrap!} and @code{unwrap_err!}. +The former can be used to unwrap values of type @code{Result} or @code{Option} +(or any type that implements VerboseUnwrap) and is comparable to calling +@code{unwrap()}. The latter can be used to unwrap an error from a +@code{Result} (or any type that implements @code{VerboseUnwrapErr}) and is +comparable to calling @code{unwrap_err()}.") + (license (list license:expat license:bsd-3)))) + (define-public rust-uom-0.31 (package (name "rust-uom") |