tokio signals are actually used for CTRL+C
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
26982fbe05
commit
aec7097cd3
3 changed files with 20 additions and 24 deletions
15
Cargo.toml
15
Cargo.toml
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue