From 0d1898ad881e05abf93c73fc8a13e4e5e5596335 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 1 May 2020 22:12:00 +0200 Subject: only cancel current search on Ctrl-C This is not yet perfect, as it seems to still execute all queued threads just to immediately exit them, so maybe we should try and see if we can "clear" the rayon queue. But it's a good start, and the ctrlc crate seems to work well for this job. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index d761af5..a612ac5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,7 @@ log = { version = "0.4", features = ["std"] } thiserror = "1.0" lalrpop-util = "0.18" rustyline = "6.1" +ctrlc = "3.1" [build-dependencies] lalrpop = { version = "0.18", features = ["lexer"] } -- cgit v1.2.3