From 5d20341c76f547b487984887fe4e431f4611a673 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 15 Jun 2021 12:48:24 +0200 Subject: [PATCH] gnu: Add rust-unsafe-unwrap-0.1. * gnu/packages/crates-io.scm (rust-unsafe-unwrap-0.1): New variable. --- gnu/packages/crates-io.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ed1b60d462..b94f8517ba 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -50733,6 +50733,26 @@ whitespace from a string.") "Traits and implementations for unchecked downcasting.") (license license:expat))) +(define-public rust-unsafe-unwrap-0.1 + (package + (name "rust-unsafe-unwrap") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "unsafe_unwrap" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "106swla8nyzn9qgjrb4xxa9ihl8rsk921nl9swl9n3ryy5jyqc0j")))) + (build-system cargo-build-system) + (arguments `(#:skip-build? #t)) + (home-page "https://github.com/nvzqz/unsafe-unwrap-rs") + (synopsis "Unsafely unwrap Result and Option types without checking") + (description + "This crate enables unchecked unwrapping on Option and Result types.") + (license (list license:expat license:asl2.0)))) + (define-public rust-untrusted-0.7 (package (name "rust-untrusted")