tokio signals are actually used for CTRL+C

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-09 18:05:11 -05:00 committed by June
parent 26982fbe05
commit aec7097cd3
3 changed files with 20 additions and 24 deletions

View file

@ -282,24 +282,19 @@ optional = true
version = "1.16.0"
optional = true
[target.'cfg(not(unix))'.dependencies]
tokio = { version = "1.36.0", features = [
[dependencies.tokio]
version = "1.36.0"
features = [
"fs",
"macros",
"sync",
] } # tokio signals are not used on non-*nix platforms
"signal",
]
# *nix-specific dependencies
[target.'cfg(unix)'.dependencies]
nix = { version = "0.28.0", features = ["resource"] }
sd-notify = { version = "0.4.1", optional = true } # systemd is only available/relevant on *nix platforms
tokio = { version = "1.36.0", features = [
"fs",
"macros",
"sync",
"signal",
] }
hyperlocal = { git = "https://github.com/softprops/hyperlocal", rev = "2ee4d149644600d326559af0d2b235c945b05c04", features = ["server"] } # unix socket support