refactor: handle SIGINT with tokio signal

This commit is contained in:
Christopher
2025-08-25 00:52:47 -04:00
parent fc99a7843d
commit b2c1857edd
4 changed files with 199 additions and 125 deletions

11
Cargo.lock generated
View File

@@ -596,7 +596,6 @@ dependencies = [
"serde",
"serde_json",
"serial_test",
"signal-hook",
"syntect",
"tempfile",
"tokio",
@@ -1585,16 +1584,6 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "signal-hook"
version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
dependencies = [
"libc",
"signal-hook-registry",
]
[[package]]
name = "signal-hook-registry"
version = "1.4.6"