unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 49462@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#49462] [PATCH 3/6] gnu: Add rust-unwrap-1.
Date: Thu,  8 Jul 2021 04:08:33 +0000	[thread overview]
Message-ID: <20210708040836.22307-3-monego@posteo.net> (raw)
In-Reply-To: <20210708040836.22307-1-monego@posteo.net>

* gnu/packages/crates-io.scm (rust-unwrap-1): New variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2bbfba39c4..bfe51a0fc7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51708,6 +51708,30 @@ untrusted inputs in Rust.")
        (sha256
         (base32 "0byf88b7ca1kb5aap8f6npp6xncvg95dnma8ipmnmd4n9r5izkam"))))))
 
+(define-public rust-unwrap-1
+  (package
+    (name "rust-unwrap")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unwrap" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0wm4zzm684d5d1lnjvvzzwazlzq7zs7j76x36842zb398bsn34wr"))))
+    (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")
-- 
2.32.0





  parent reply	other threads:[~2021-07-08  4:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08  4:07 [bug#49462] [PATCH 0/6] gnu: Add rust-mdns-0.3 Vinicius Monego
2021-07-08  4:08 ` [bug#49462] [PATCH 1/6] gnu: Add rust-c-linked-list-1 Vinicius Monego
2021-07-08  4:08   ` [bug#49462] [PATCH 2/6] gnu: Add rust-get-if-addrs-sys-0.1 Vinicius Monego
2021-07-08  4:08   ` Vinicius Monego [this message]
2021-07-08  4:08   ` [bug#49462] [PATCH 4/6] gnu: Add rust-get-if-addrs-0.5 Vinicius Monego
2021-07-08  4:08   ` [bug#49462] [PATCH 5/6] gnu: Add rust-dns-parser-0.8 Vinicius Monego
2021-07-08  4:08   ` [bug#49462] [PATCH 6/6] gnu: Add rust-mdns-0.3 Vinicius Monego
2021-07-15 12:58 ` bug#49462: [PATCH 0/6] " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210708040836.22307-3-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=49462@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).