diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-05-01 22:12:00 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-05-01 22:12:00 +0200 |
commit | 0d1898ad881e05abf93c73fc8a13e4e5e5596335 (patch) | |
tree | 8cdcbb2c7f9dba7599020b1f5780349236706705 /Cargo.toml | |
parent | 4e02a34827b0ae3ef5eb957ab142f5a4c0ece301 (diff) | |
download | raidgrep-0d1898ad881e05abf93c73fc8a13e4e5e5596335.tar.gz raidgrep-0d1898ad881e05abf93c73fc8a13e4e5e5596335.tar.bz2 raidgrep-0d1898ad881e05abf93c73fc8a13e4e5e5596335.zip |
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.
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"] } |