From c58a00a3022e5bdb3cc013b3f9613dbad6a5312d Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 13 Dec 2019 23:09:01 -0800 Subject: [PATCH 023/263] gnu: Add rust-either-1.5. * gnu/packages/crates-io.scm (rust-either-1.5): New variable. --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 24c86dab03..9896305e38 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -905,6 +905,31 @@ floating-point primitives to an @code{io::Write}.") (base32 "0g96cap6si1g6wi62hsdk2fnj3sf5vd4i97zj6163j8hhnsl3n0d")))))) +(define-public rust-either-1.5 + (package + (name "rust-either") + (version "1.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "either" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0yyggfd5yq9hyyp0bd5jj0fgz3rwws42d19ri0znxwwqs3hcy9sm")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-serde" ,rust-serde-1.0)))) + (home-page "https://github.com/bluss/either") + (synopsis + "Enum @code{Either} with variants @code{Left} and @code{Right}") + (description + "The enum @code{Either} with variants @code{Left} and +@code{Right} is a general purpose sum type with two cases.") + (license `(,license:expat ,license:asl2.0)))) + (define-public rust-env-logger-0.6 (package (name "rust-env-logger") -- 2.24.1