handle cancellation in complement wrapper

What a mess lmao
This commit is contained in:
Benjamin Lee 2024-06-22 00:12:23 -07:00
parent f76806655f
commit 0eee282558
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4
4 changed files with 236 additions and 12 deletions

44
Cargo.lock generated
View file

@ -391,6 +391,12 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]]
name = "cfg_aliases"
version = "0.2.1"
@ -845,7 +851,7 @@ dependencies = [
"image",
"jsonwebtoken",
"lru-cache",
"nix",
"nix 0.29.0",
"num_cpus",
"once_cell",
"opentelemetry",
@ -1523,6 +1529,18 @@ dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "nix"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
dependencies = [
"bitflags 2.6.0",
"cfg-if",
"cfg_aliases 0.1.1",
"libc",
]
[[package]]
name = "nix"
version = "0.29.0"
@ -1531,7 +1549,7 @@ checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
dependencies = [
"bitflags 2.6.0",
"cfg-if",
"cfg_aliases",
"cfg_aliases 0.2.1",
"libc",
]
@ -1917,6 +1935,16 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "process-wrap"
version = "8.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "38ee68ae331824036479c84060534b18254c864fa73366c58d86db3b7b811619"
dependencies = [
"indexmap 2.5.0",
"nix 0.28.0",
]
[[package]]
name = "prometheus"
version = "0.13.4"
@ -2741,6 +2769,16 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "signal-hook"
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
dependencies = [
"libc",
"signal-hook-registry",
]
[[package]]
name = "signal-hook-registry"
version = "1.4.2"
@ -3867,8 +3905,10 @@ dependencies = [
"clap",
"indicatif",
"miette",
"process-wrap",
"serde",
"serde_json",
"signal-hook",
"strum",
"xshell",
]