From: Tanguy Le Carrour <tanguy@bioneland.org>
To: 39453@debbugs.gnu.org
Cc: Tanguy Le Carrour <tanguy@bioneland.org>
Subject: [bug#39453] [PATCH] gnu: Add rust-ctrlc.
Date: Thu, 6 Feb 2020 17:29:18 +0100 [thread overview]
Message-ID: <20200206162918.14165-1-tanguy@bioneland.org> (raw)
* 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")
--
2.25.0
next reply other threads:[~2020-02-06 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-06 16:29 Tanguy Le Carrour [this message]
2020-02-08 19:26 ` bug#39453: [PATCH] gnu: Add rust-ctrlc Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200206162918.14165-1-tanguy@bioneland.org \
--to=tanguy@bioneland.org \
--cc=39453@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.