From patchwork Thu Feb 6 16:29:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 20149 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2775C168DA; Thu, 6 Feb 2020 16:30:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id EB1B0168BB for ; Thu, 6 Feb 2020 16:30:16 +0000 (GMT) Received: from localhost ([::1]:42048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izk2i-0000U4-Gz for patchwork@mira.cbaines.net; Thu, 06 Feb 2020 11:30:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48462) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izk2b-0000QF-RV for guix-patches@gnu.org; Thu, 06 Feb 2020 11:30:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izk2W-0002su-QR for guix-patches@gnu.org; Thu, 06 Feb 2020 11:30:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42371) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izk2V-0002s2-L7 for guix-patches@gnu.org; Thu, 06 Feb 2020 11:30:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1izk2V-0006Nq-Gg for guix-patches@gnu.org; Thu, 06 Feb 2020 11:30:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39453] [PATCH] gnu: Add rust-ctrlc. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Feb 2020 16:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39453 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39453@debbugs.gnu.org Cc: Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158100658324474 (code B ref -1); Thu, 06 Feb 2020 16:30:03 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2020 16:29:43 +0000 Received: from localhost ([127.0.0.1]:48341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izk2A-0006Mg-Nn for submit@debbugs.gnu.org; Thu, 06 Feb 2020 11:29:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:35999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izk29-0006MY-5H for submit@debbugs.gnu.org; Thu, 06 Feb 2020 11:29:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48254) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izk28-0008VD-2z for guix-patches@gnu.org; Thu, 06 Feb 2020 11:29:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izk24-0002BZ-6u for guix-patches@gnu.org; Thu, 06 Feb 2020 11:29:40 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:43057) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izk24-00027b-0q for guix-patches@gnu.org; Thu, 06 Feb 2020 11:29:36 -0500 X-Originating-IP: 176.159.32.89 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 65568C000F; Thu, 6 Feb 2020 16:29:33 +0000 (UTC) From: Tanguy Le Carrour Date: Thu, 6 Feb 2020 17:29:18 +0100 Message-Id: <20200206162918.14165-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-ctrlc-3.1): New variable. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 727e7c9510..a48d614df5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1159,6 +1159,32 @@ little-endian.") "Types and traits for working with bytes.") (license license:expat))) +(define-public rust-ctrlc-3.1 + (package + (name "rust-ctrlc") + (version "3.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ctrlc" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pnv2g5q73xa0g4g9k31h2fkmk4dabznjhrkqs93d28v5f9920v3")))) + (build-system cargo-build-system) + (home-page "https://github.com/Detegr/rust-ctrlc") + (synopsis "A simple easy to use wrapper around Ctrl-C signal") + (description + "Cross platform handling of Ctrl-C signals. set_handler() allows setting +a handler closure which is executed on Ctrl+C. On Unix, this corresponds to +a SIGINT signal. On windows, Ctrl+C corresponds to CTRL_C_EVENT or +CTRL_BREAK_EVENT. Setting a handler will start a new dedicated signal +handling thread where we execute the handler each time we receive +a Ctrl+C signal. There can only be one handler, you would typically set one +at the start of your program.") + (license (list license:expat license:asl2.0)))) + (define-public rust-c2-chacha-0.2 (package (name "rust-c2-chacha")