From ec64fd5b75e20fee13ff3ee13637772072781409 Mon Sep 17 00:00:00 2001 From: John Soo Date: Mon, 26 Oct 2020 08:41:00 -0700 Subject: [PATCH 55/89] gnu: Add rust-relay-0.1. * gnu/packages/crates-io.scm (rust-relay-0.1): New variable. --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1032134f9c..b48277cbd9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -22390,6 +22390,34 @@ uses finite automata and guarantees linear time matching on all inputs.") (description "This package provides portable, relative paths for Rust.") (license (list license:expat license:asl2.0)))) +(define-public rust-relay-0.1 + (package + (name "rust-relay") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "relay" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "16j8y57rjrfy3h5xfi9fwfbjs1nka3iifi52rvp9szldd21f6xhm")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-futures" ,rust-futures-0.1)))) + (home-page "https://github.com/seanmonstar/relay") + (synopsis "Lightweight Future channel for passing data among tasks") + (description + "This package provides a lightweight channel using @code{Future}. A +relay channel does not implement @code{Send}, and so is not meant for +synchronizing between threads. Instead, its used to send message between +tasks that live in the same thread. + +It is similar to the @code{oneshot} channel in the futures crate, but since it +is not meant for sending across threads, it performs about twice as fast.") + (license (list license:expat license:asl2.0)))) + (define-public rust-remove-dir-all-0.5 (package (name "rust-remove-dir-all") -- 2.28.0