feat: Listen for ctrl-c

before ctrl-c would not cancel a running job.
This commit is contained in:
andy.boot
2024-03-14 21:14:02 +00:00
parent 0364cf781e
commit b54a215805
5 changed files with 99 additions and 50 deletions
+1
View File
@@ -40,6 +40,7 @@ config-file = "0.2"
serde = { version = "1.0", features = ["derive"] }
directories = "4"
sysinfo = "0.27"
ctrlc = "3.4"
[target.'cfg(windows)'.dependencies]
winapi-util = "0.1"