From b320eb867b17afe49bf9e8c8da89e02d3b618c2f Mon Sep 17 00:00:00 2001 From: John Soo Date: Mon, 26 Oct 2020 08:09:55 -0700 Subject: [PATCH 49/89] gnu: Add rust-take-0.1. * gnu/packages/crates-io.scm (rust-take-0.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 b02fcbfdb7..322ad97044 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -28258,6 +28258,30 @@ syntax extension expansion.") (description "Send log messages to syslog.") (license license:expat))) +(define-public rust-take-0.1 + (package + (name "rust-take") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "take" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1i8p579k9kq21k7pcm4yzbc12xpshl39jfa5c1j6pxf1ia6qcmxi")))) + (build-system cargo-build-system) + (home-page "https://github.com/carllerche/take") + (synopsis "Container utility for Rust") + (description + "This package provides the @code{Take} datatype. @code{Take} is a +@code{Cell} allowing the inner value to be consumed without a mutable +reference. + +In order to maintain safety, it is not possible to get access to the inner +value without consuming it.") + (license `(,license:asl2.0 ,license:expat)))) + (define-public rust-take-mut-0.2 (package (name "rust-take-mut") -- 2.28.0